Skip to content Skip to sidebar Skip to footer

How To Validate Dynamic Content Using Jquery Validate Plugin

I'm having issues validating some dynamic content. The closest I have come to finding a similar problem is this: jquery-validate-is-not-working-with-dynamic-content My form is a ba

Solution 1:

You can use attributes to add the rules like

dom += '<input type="text" name="FullName_' + i + '" required>';

Demo: Fiddle

Solution 2:

You need to use

$(document).on('click', '#FORMOB7DC24203803DC2', function(e) {
    validate();
});

This allows you to validate content added to page at any time.

Post a Comment for "How To Validate Dynamic Content Using Jquery Validate Plugin"