Monday, January 28, 2008

Toggle DIV Visibility In .aspx File

<DIV style="CURSOR: hand; COLOR: blue" onclick="ShowHideImageUploader()">

<span style="font-family: Arial; font-weight:bold">Open Insertion span>DIV>


===================================================

function ShowHideImageUploader()

{

if(document.getElementById('tblyes').style.display=='none')

{

document.getElementById('tblyes').style.display='block';

}

else

{

document.getElementById('tblyes').style.display='none';

}

}


-
ShriKrishna Bhardwaj , With ASP.Net, SQL Server, Javascript

1 comment:

Unknown said...

you can use this method with any of the html element, see if you can design a beautiful dropdown menu for your application, i have done it