I have done some small validation myself and end up with either – myvalid = true or mayvalid = false. How can add this check to the validation I am doing already on my form using the Validation Plugin?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
.addMethod()to add custom validation methods to the Validation plugin.http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage
Update:
Here’s an example you can test: http://jsfiddle.net/W8EsU/
HTML
jQuery