Livevalidation: only validate when default value is changed

Posted by usr122212 on Stack Overflow See other posts from Stack Overflow or by usr122212
Published on 2011-03-11T04:38:24Z Indexed on 2011/03/13 16:10 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

Hello there!

I am validating my html form with livevalidation and everything works great except for one feature.

I have a input field with a default value age, I only want the livevalidation to validate when it says something other than "age". so maybe the user will type in 20 then the validation will fire checking its things but if left as "age" it won't check it all. But as of now, it just checks everything with a validation script and this is a problem for me as I have lots of fields in my form and some of them are optional so when I hit submit, the livevalidation checks the age field as well even if the user didnt touch it to begin with. Would this be possible with livevalidation ?

Thanks for the help.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html