Answers for "how to use the css display property to hide the p element in javascript"

16

display none js

document.getElementById("myDIV").style.display = "none";
Posted by: Guest on May-06-2020
3

hide a div

<div id="main"> 
  <p> Hide/show this div </p>
</div>

('#main').hide(); //to hide

// 2nd way, by injecting css using jquery
$("#main").css("display", "none");
Posted by: Guest on July-17-2020

Code answers related to "how to use the css display property to hide the p element in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language