Submitting an Ajax.Beginform while using the JQuery Validate plugin doesn\'t stop the submission. Is there a good way to ensure the Ajax.Beginform is not submitted?
I\'
It doesn't seem too hacky to me, but them I'm not the most elegant guy in the world. The only thing I think I'd do differently is set it up like this:
$('#login').validate(); // setup form to use validation plugin
var options = {
beforeSubmit: function() {
return $('#login').valid(); // check form is valid
},
success: manageResponse
};