I have this code that will make the relevant paragraph disappear:
var first = paragraph[0].innerHTML = " "
but can't figure out why the following line of code won't make the paragraph disappear:
document.getElementsByClassName("para")[0].innerHTML.style.visibility = "hidden";
you don't need innerHTML
, use
document.getElementsByClassName('para')[0].style.visibility = 'hidden';
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments