button disabled but click code example
Example 1: html button disabled
<button type="button" disabled>This button is disabled</button>
Example 2: On click, disable button
$("#btnSubmit").attr("disabled", true);
<button type="button" disabled>This button is disabled</button>
$("#btnSubmit").attr("disabled", true);