I have a form that takes a little while for the server to process. I need to ensure that the user waits and does not attempt to resubmit the form by clicking the button agai
Change submit button:
With normal button:
Then use click function:
$("#submitButtonId").click(function () { $('#submitButtonId').prop('disabled', true); $('#myForm').submit(); });
And remember re-enable button when is necesary:
$('#submitButtonId').prop('disabled', false);