If it is a real form, i.e. not processed javascript event , this should work.
If you process a button with an onClick event, you will find that it is probably still triggering. If you do this, you better just set the variable in your JS as buttonDisabled, and check that var when you are handling the onClick event.
Otherwise try
$(yourButton).attr("disabled", "true");
And if after all this you still donβt get anywhere, you can manually βbreakβ the button using jquery (now this becomes serious):
$(submitButton).click(function(ev) { ev.stopPropagation(); ev.preventDefault(); });
This should stop the button acting as a button.
Oli
source share