1

How can I disable validation for one button inside the Ajax begin form?

Using jQuery validation I tried many ways from Google, but none of them worked (class="cancel", disableValidation attribute, etc.).

2 Answers 2

2

There may be other ways, but one for sure way is to remove all the validation rules if using unobtrusive validation via:

http://docs.jquery.com/Plugins/Validation/rules#.22remove.22rules

Sign up to request clarification or add additional context in comments.

Comments

1
$('#frmMyName').validate().cancelSubmit=true;

1 Comment

But this removes all the client validation... Right?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.