| Share this post! | Vote this! |
|
This useful form validation script
lets you add a custom "maxlength" attribute to
INPUT type="text"
and TEXTAREA elements, so users are prevented from entering more
characters into these fields than the designated number. Inspired by
Twitter's input box, it can
optionally show the number of characters remaining for a field as the user types
while displaying this info in different colors depending on how close the user
is to the limit.
Recall that HTML supports a
maxlength attribute by
default, although it only applies to INPUT elements, and furthermore, cannot
show the user the number of characters remaining. more...



0 comments:
Post a Comment