0

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
        });
    });
user3653474
  • 2,669
  • 3
  • 30
  • 83

0 Answers0