Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
hopefully someone can assist me with this.trying to make it so that when one div in my html page is hidden, another one is visible. tried thisfunction hideShow(first,second) { var div1 = document.getElementById(first).style; var div2 = document.getElementById(second).style; div1.display = div1.display? "block":""; div2.display = div2.display? "":"block"; }not sure how to proceed.any help greatly appreciated.thanks.
hopefully someone can assist me with this.
trying to make it so that when one div in my html page is hidden, another one is visible. tried this
function hideShow(first,second)
{
var div1 = document.getElementById(first).style;
var div2 = document.getElementById(second).style;
div1.display = div1.display? "block":"";
div2.display = div2.display? "":"block";
}
not sure how to proceed.
any help greatly appreciated.
thanks.