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.
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 :-)