Trying to think of the best way to describe what I'm trying to do....
Let me start with that I'm not super familiar with jQuery or let alone Validator (our company decided on a whim they wanted to move away from our custom .NET libraries and start using jQuery...).
I have a form and within that form there are two text fields that a user can enter in text and add the combined two as a single item to a list of information that gets processed with the entire form. For the sake of simplicity, lets say these are first name and last name (they're not but it gets really complicated to explain from there and it's the closest logical analogy I can think of).
They are added to this "list" (a table) as basically copies of the text boxes so the user can edit them if need be as well as a button to remove the item. One entry per TR with a custom attribute to figure out what to do with this particular row. It looks like: <tr action="whatever">... this particular page will only ever use "add" as the action)
When the full page is processed, I want to validate that there are even items in the list. If the user did not add any items to the list, then it will have none of these TR Actions.
I was going to create a custom addMethod and basically do $("#tableID>tr[action]").length > 0 and return a true or false. But looking more in the Validator docs, I'm not exactly sure what's getting passed around to the addMethod or how it fully works. Sadly, I just don't have the time to read through it with the iteration deadline coming up and plenty of other simple forms that need their validation updated.
So, I'm hoping one of you lovely people can give me a good suggestion that'll keep this validation within the Validator code and make it as simple as possible.
Thanks a million in advance!