Pregunta

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.

¿Fue útil?

Solución

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;
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top