Download
User Rating: 0/5 ( 0 votes)
Character count is a simple script that collects user entered string, calculates and instantly updates results to show how many characters were entered. Further, it also calculates the number of alphabets, numbers and spaces. Each time a key is pressed, the process iterates. So, updating is real time.
Source: github.com
1. INCLUDE JS FILES
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="charactercount.js"></script>
2. HTML
<div id="main">
<textarea cols="70" rows="10" class="textinput"></textarea>
</div>
<div id="output">
<ul class="outputbox">
<li><span>0</span><br />characters</li>
<li><span>0</span><br />spaces</li>
<li><span>0</span><br />numbers</li>
<li><span>0</span><br />alphabets</li>
</ul>
</div>