JQuery.Validate - Defining Groups Dynamically
I have a table with N rows, each having two textboxes. In each row, the value in the first textbox must be less than the value in the second texbox.
I added a custom method to do validation for both textboxes in each pair. The problem is, they do not behave together. For example, each has it's own separate error message. And correcting the value in one does not remove the validation message for the other.
I seems that the groups option is meant to handle this kind of scenario. Problem is, my table is generated at runtime, so i do not know in advance how many groups there will be or the exact names of the elements in each group.
How is this handled with jquery.validate?