Vote count:
0
function setPosition(currentdiv)
{
try {
for (var i = 0; i < document.getElementById("parentContainer").childNodes.length; i++)
{
document.getElementById("parentContainer").childNodes[i].style.zIndex = 0;
}
currentdiv.style.zIndex = 1;
} catch (e) {
alert(e.Message);
}
}
I am passing Html Div Element in function setPosition and itterating through its child nodes and setting z-index property to zero. Its working fine in IE but giving Undefined in very first itteration in firefox and chroome. Any help ?
asked 24 secs ago
While looping through Object HTMLDivElement, applying ChileNode style zindex giving undefined in firefox and chroome?
Aucun commentaire:
Enregistrer un commentaire