Answers for "disabled click event"

0

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
0

@click event disabled source

<button @click="disable">Disable me</button>
...
methods: {
	disable(e) {
    	e.srcElement.disabled = true;
    }
},
Posted by: Guest on October-09-2020

Browse Popular Code Answers by Language