button disabled click code example
Example 1: On click, disable button
$("#btnSubmit").attr("disabled", true);
Example 2: disabled a click
// CSS
.not-active {
pointer-events: none;
cursor: default;
text-decoration: none;
color: black;
}
// HTML
<a href="link.html" class="not-active">Link</a>