N
Nicholas
Hello,
I have a simple function
function hide()
{
if (document.getElementById("DIV1").style.visibility == 'hidden')
{document.getElementById("DIV1").style.visibility = 'visible';}
else
{document.getElementById("DIV1").style.visibility = 'hidden';}
}
How can i pass something else instead of "DIV1" useing it as a function
parameter?
I have a simple function
function hide()
{
if (document.getElementById("DIV1").style.visibility == 'hidden')
{document.getElementById("DIV1").style.visibility = 'visible';}
else
{document.getElementById("DIV1").style.visibility = 'hidden';}
}
How can i pass something else instead of "DIV1" useing it as a function
parameter?