Hi Guys,
Can you please check this code and see whats wrong with it?? I am getting document.all[...].style is null or not an object error.
Any help will be really appreciated.
Thanks
Code
Can you please check this code and see whats wrong with it?? I am getting document.all[...].style is null or not an object error.
Any help will be really appreciated.
Thanks
Code
Code:
function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}
Comment