jQuery-Form-Validator icon indicating copy to clipboard operation
jQuery-Form-Validator copied to clipboard

Is it possible to re-initialize the validator after an ajax response which contains new html fields/inputs?

Open KnottA opened this issue 7 years ago • 1 comments
trafficstars

Hi. When i re-run the code below (for second time within the process of the ajax response) the submit button will trigger to the server even if the inputs has errors.. How can i fix this? Is there an easy way to re-initialize the validator when new fields have been loaded? $.validate({ lang: 'no', modules : 'security, logic' });

My form is a very long one and have a lot of extra content being loaded by ajax, I need a way to easy re-initialize these inputs.

Hope someone can help me :-)

KnottA avatar Jul 31 '18 06:07 KnottA

Could you show me a code example?

victorjonsson avatar Aug 22 '18 06:08 victorjonsson