I\'m trying to disable a button after it\'s clicked. I have tried:
$(\"#ajaxStart\").click(function() { $(\"#ajaxStart\").attr(\"disabled\", true); $
I solved this by using global function of ajax
$(document).ajaxStart(function () { $("#btnSubmit").attr("disabled", true); }); $(document).ajaxComplete(function () { $("#btnSubmit").attr("disabled", false); });
here is documentation link.