Visualize the \"maxlength\" attribute using a string length counter


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

A little snippet that visualizes the \"maxlength\" attribute, used on the HTML \"input\" and \"textarea\" elements.\r\n\r\nThe snippet is set up in such a way as to give you easy control over...\r\n\r\n1. formatting of the counter\r\n2. the HTML tag where the counter is put\r\n3. where in the document you want the counter to be displayed\r\n\r\nThe snippet is quite self-explanatory, but I have commented on basically everything. Read the comments for further help.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.