validate length of string


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

this function returns if the passed string is shorter than the limit or not
when you press keys other than F5, backspace, or any arrow keys and the limit is reached it shows an alert.

use with isValueInArray function

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.