How to get input text length and validate user in javascript

Posted by Crazy boy on Stack Overflow See other posts from Stack Overflow or by Crazy boy
Published on 2010-05-13T07:47:12Z Indexed on 2010/05/13 7:54 UTC
Read the original article Hit count: 229

Filed under:
|

I want to valid if user has entered username and password at the time of creating an account is safe or not based on its length(for my case five) on the right side of input field by showing that in different color i.e. for shorter in red, otherwise in green. How can I do that with javascript?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about validate