Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get element class javascript

//YOU NEED TO DO A LOOP OF THE ELEMENTS
var elements = document.getElementsByClassName('editp');
for(var i=0; i<elements.length; i++) { 
  elements[i].style.display='none';
}
 
PREVIOUS NEXT
Tagged: #element #class #javascript
ADD COMMENT
Topic
Name
8+2 =