Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get elements by class is not working

//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: #elements #class #working
ADD COMMENT
Topic
Name
2+9 =