V
viveklinux
Hi,
Have a page where there are multipe DIVs present in a single row of a
table. Only one DIV has to be displayed corresponding to the link
clicked on the menu. Using the following Javascript function :
function hideandshow (entity)
{
var parentNode = document.getElementById (entity).parentNode ;
var len = parentNode.childNodes.length ;
for ( var i = 0 ; i < len ; i++ )
{
......
}
}
The argument passed 'entity' is the id of the DIV which needs to be
displayed. The child nodes returned are not just DIVs but other objects
as well. How can i access the style.display property of the DIVs and
make sure that only the entity DIV is displayed and the rest are
invisible.
Thanks in advance,
vivekian
Have a page where there are multipe DIVs present in a single row of a
table. Only one DIV has to be displayed corresponding to the link
clicked on the menu. Using the following Javascript function :
function hideandshow (entity)
{
var parentNode = document.getElementById (entity).parentNode ;
var len = parentNode.childNodes.length ;
for ( var i = 0 ; i < len ; i++ )
{
......
}
}
The argument passed 'entity' is the id of the DIV which needs to be
displayed. The child nodes returned are not just DIVs but other objects
as well. How can i access the style.display property of the DIVs and
make sure that only the entity DIV is displayed and the rest are
invisible.
Thanks in advance,
vivekian