jQuery: Dynamic Character Count


/ Published in: jQuery
Save to your folder(s)

Handy code snippet for keeping track of the number of characters a user is entering into a textbox or textarea. It will dynamically update the count as the user is typing. This also works with copy & paste.

The top snippet will automatically calculate the current count after the page loads; use the .keyup event to do the dynamic update.

All of this code should be in the $(document).ready.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.