jQuery validation plugin: view all rules associated with an object
Hi All,
I add and remove rules dynamically in my application. I need to be able to check whether or not a rule exists before trying to remove it (trying to remove a rule that doesn't exist throws an error).
In the documentation, it says that $("input[class='myClass']").rules() returns all of the rules associate with an object. I can see that an object is returned, but I don't know how to access the rules ( .val() and .each() aren't handled, and [0] returns "undefined").
I'd really appreciate any help you can provide!
Thanks!!
Irina