I need to disable a button once it's clicked so the user can't click it more than once. (My application is written in MVC ASP.NET, I've done this in a normal ASP.NET application.)
I tried using JavaScript and jQuery and it's not working. The button is getting disabled but the form is not being submitted.
jQuery:
$("#ClickMe").attr("disabled", "disabled");
JavaScript:
function DisableNextButton(btnId) {
document.getElementById(btnId).disabled = 'true';
}
Both methods work great, but now the form won't submit.