I am disabling my submit buttons when submitting a form, for preventing the user to submit the form multiple times.
$(function ()
{
$("form").submit(function ()
{
$(":submit", this).attr("disabled", "disabled");
});
});
But if the client validation fails I want to enable the button again. I am using asp.net mvc unobtrusive client validation