I have following jQuery code to prevent double clicking a button. It works fine. I am using Page_ClientValidate()
to ensure that the double click is prevented o
If you are doing a full round-trip post-back, you can just make the button disappear. If there are validation errors, the button will be visible again upon reload of the page.
First set add a style to your button:
Then make it hide when clicked.
$(document).ready(function() {
$(".hideOnClick").click(function(e) {
$(e.toElement).hide();
});
});