Howcan I add the: display: = "block"; in this function?

function myFunction2() {

document.getElementById(“myP”).style.visibility=“visible”;

}

Does

document.getElementById("myP").style.display = "block";

not work?

1 Like