I am using out of the box client side validation in MVC 3. At the client side, I want to detect if the form has passed client side validation. If so I want to display an busy indicator and disable the 'submit' button.
So I am looking for a form.isValid type property of a collection of error that I can query from js.
Any pointers.
Thanks
Pj
You could use the following:
if ($('#yourform').valid()) {
// the form passed client side validation
// TODO: show busy indicator and disable submit button
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With