I have a special application that I am trying to get the jQuery Validation Plugin to work. All the elements on my page are encased inside of a table, and I don't have the ability to apply classes directly to the validated elements (<input>, etc). The classes must come on the table elements:
<table> <tr> <td class="required"> <input id="myinput"></input> </td> </tr> </table> Either I need to be able to make a standard way to validate the entire form with all the standard out-of-the-box validators using the strict format listed above, or I need to change the plugin to work with my application. Which is easier, and how could I approach this? I've had some luck by manually attaching validation by using the following code: $(".required input").each(function() { $(this).rules("add", { required: true }); }); but, I would rather use the plugin instead of having to go through all the standard validations and manually applying them. It would also help for custom validations, as it will take less code to use the plugin methods directly. Any help is appreciated.