I\'m trying to disable a button after it\'s clicked. I have tried:
$(\"#ajaxStart\").click(function() { $(\"#ajaxStart\").attr(\"disabled\", true); $
In your code, you just disable & enable the button on the same button click,.
You have to enable it inside the completion of AJAX call
something like this
success: function(response){ $("#ajaxStart").attr("disabled", false); //success process here $("#alertContainer").delay(1000).fadeOut(800); },