Computer Science, asked by sumi4490, 1 year ago

How to set an element's display type with JavaScript?

Answers

Answered by amreen48
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