views:

34

answers:

1

I am using the jQuery MVC validation library for ASP.NET MVC, which is working fine.

However, on my form I have a 'Cancel' and a 'Save' button, both of which I want to submit the form back to the server.

However, if the user clicks 'Cancel' I need to disable the client side validation so that the user doesn't get prompted to complete required fields before they can cancel!

Any pointers would be appreciated!

Thanks.

A: 

Hi,

You need to use validation groups: http://msdn.microsoft.com/en-us/library/ms227424.aspx

GôTô
I don't think this solves my problem - I'm using the jQuery MVC validation library.
Chris Roberts
Don't you still have validation groups? They were really made for that type of problem.
GôTô