Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hide element js

//hidden attribute
document.getElementById("the-element-id").hidden=true
document.getElementById("the-element-id").setAttribute("hidden",true)
//style attribute
document.getElementById("the-element-id").style.display="none"
Source by www.journaldunet.fr #
 
PREVIOUS NEXT
Tagged: #hide #element #js
ADD COMMENT
Topic
Name
3+5 =