Answers for "javascript prevent element from being click target"

0

prevent from going to a function html click

$("#clickable a").click(function(e) {
   // Do something
   e.stopPropagation();
});
Posted by: Guest on July-03-2020
0

prevent click on pseudo element javascript

&:before {
  cursor: default;
  pointer-events: none;
}
Posted by: Guest on May-04-2021

Code answers related to "javascript prevent element from being click target"

Browse Popular Code Answers by Language