Question

I am using jquery.validationEngin.js plugin for the form validation. I have asp.net web form containing more submit buttons. They all are checking validations while posting data. I managed to skip the valition for some of those button by setting propertyUseSubmitBehavior="false" as refereed this.

However there are some control which does not have such property. Ultimately i want to ask here how can i skip the validation of form for some cases.

Was it helpful?

Solution

From the plugin documentation here I manage to the things right. You have to simply detach the validation plugin wherever you feel unwanted. I have made below function and call it before performing any action.

function ByPassValidations() {
    $("#formId").validationEngine('detach');
    return true;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top