hi all,
i donno whether this is the right place to post me query.
i'm finding for a solution to my problem.
i'm using javascript to expand or collapse div tag as given below.
function switchMenu(obj)
{
var el = document.getElementById(obj);
if ( el.style.display != 'none' )
{
el.style.display = 'none';
}
else
{
el.style.display = 'block';
}
}
can any one tel me how to get the returned value from the script. for Eg: if i'm returning true or false where can i save these values from javascript so as to use them for further actions based on true or false?
thanks
i'm giving the DIV id to the function during call
<a href="javascript:switchMenu('divID);">
<img border="0" class="img_coll" src="Images.gif" style="z-index: 101; left: 961px;
position: absolute; top: 0px" />
</a>
thanks in advance