We can handle this at 2 different places. One is on form submit event and second is when button is clicked.
jQuery code to handle on form submit event.
$("form").submit(function() {jQuery code to handle on submit button click event.
$("#btnSubmit").attr("disabled", "disabled");
});
$("#btnSubmit").click(function() {Feel free to contact me for any help related to jQuery, I will gladly help you.
$(this).attr("disabled", "disabled");
});
No comments:
Post a Comment