disable onclick button code example
Example 1: On click, disable button
$("#btnSubmit").attr("disabled", true);
Example 2: disable onclick
pointer-events: none;
cursor: default;
$("#btnSubmit").attr("disabled", true);
pointer-events: none;
cursor: default;