Disable Submit Button after First Click to Prevent duplicate Postback Using jQuery
Sometimes, there are chances that the user may click the submit button more than once to post the data. It will be good if we disable the submit button after user clicks for the first time to prevent the duplicate postbacks.
The following jQuery code will help us to do that,
<script src="_scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
<script language="javascript">
$("form").submit(function() {
$(":submit", this).attr("disabled", "disabled");
});
</script>
|