Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript hide element by class

document.querySelector('.class-name').style.display = 'none'
// or
document.querySelector('.class-name').style.visibility = 'hidden'
 
PREVIOUS NEXT
Tagged: #javascript #hide #element #class
ADD COMMENT
Topic
Name
1+8 =