Answers for "force click a disabled button"

1

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>
Posted by: Guest on October-29-2020
2

disable button after one click

You can add an onclick handler to your button:

document.getElementById("idOfButton").onclick = function() {
    //disable
    this.disabled = true;

    //do some validation stuff
}
Posted by: Guest on June-28-2021

Code answers related to "force click a disabled button"

Browse Popular Code Answers by Language