Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Disable click for specific elements javascript

function handler(e) {
  if(e.target.className=="class_name"){
    e.stopPropagation();
    e.preventDefault();
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Disable #click #specific #elements #javascript
ADD COMMENT
Topic
Name
6+6 =