On click, disable button
$("#btnSubmit").attr("disabled", true);
Source: mkyong.com
disable onclick
pointer-events: none; cursor: default;
Source: stackoverflow.com
button click disable html
<button type="button" disabled>Click Me!</button>