disabled click button 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);
Example 3: 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>