Hide/unhide DIV tag

By Mash B

How to hide / unhide the div tag in aspx page.

jscript

function Show(divId)
{
document.getElementById(divId).style.visible ='visible';
}

function Hide(divId)
{
document.getElementById(divId).style.visible ='hidden';
}

HTML
<input type=button onclick="Hide('someDivId');" />
<input type=button onclick="Show('someDivId');" />

Hide/unhide DIV tag  (1249 Views)