How to set an element's display type with JavaScript?
Answers
Answered by
0
Style display property is used to hide and show the content of HTML DOM by accessing the DOM element using JavaScript/jQuery. To hide an element, set the style display property to “none”. document.getElementById("element").style.display = "none"; To show an element, set the style display property to “block
Similar questions
Social Sciences,
7 months ago
Chemistry,
7 months ago
Political Science,
7 months ago
Science,
1 year ago
Math,
1 year ago
History,
1 year ago