Charactor Length Javascript
How to control an elemen开发者_Go百科t's character length from another element using javascript. It should not allow to insert a char in middle of character?
You can use the maxlength attribute:
You can also extend this using JavaScript
http://www.mediacollege.com/internet/javascript/form/limit-characters.html
精彩评论