I have multiple dynamic fields generated on the page. I am trying to validate those fields using jquery validator plugin. I have used this code for validation and it is working, but there are some fields whose name i knew so i want other validation on that field whose name i know so how can i add that code here it can be select, or input box :
jQuery('form#add_form input').each(function () {
jQuery(this).rules('add',{
required: true
});
});