I am using jquery validator for client side as well as server side validation.
But i want to show error of one form filed with another form field.
Can anyone suggest how to acheive that?
I am using following validator class.
http://jquery-validation-php-plugin.googlecode.com/svn-history/r6/trunk/Validator.class.php
Thanks in advance.
You can create a new rule in jquery validation plugin. Check this link jquery-validate – addMethod – how to apply custom rule referencing two text boxes?
In this rule you can check the form field and accordingly return the value of rule.
Or otherwise you can change the rule for a field. Suppose you got a field ‘firstName’, so you can add your custom code like this