j query validation plugin for two fields
Posted
by jonathan p
on Stack Overflow
See other posts from Stack Overflow
or by jonathan p
Published on 2010-05-27T08:49:48Z
Indexed on
2010/05/27
8:51 UTC
Read the original article
Hit count: 149
I am using the Jquery Validation plug-in, however i need to add a "custom rule", i have 2 date fields and i need to ensure that the end date is not less than the start date. My problem is how to pass the two fields in as elements.
As i understand u set up a custom function something like this :
function customValidationMethod(value, element, params){ }
But can't see how i could use it with two fields, if anyone has any ideas it would be greatly appreciated.
© Stack Overflow or respective owner