Dear All, I m working on a requirement where I need to use show-hide functionality. This is working on IE perfectly using if (document.all) { for(iloop=0;iloop<document.all.hidPElmnt.length;iloop++) {document.all.hidPElmnt[iloop].style.visibility = "visible"; }} But I m not able to do it for netscape. Can anybody tell me what is the equivalent code for above posted code used for IE. I m using if (document.getElementById) { document.getElementById("hidPElmnt").style.visibility = "visible"; } but I m stuck with , how to iterate for all the elements whose ID is hidPElmnt.
Thanks in advance.
Regards Dushyant Bhardwaj
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
posted
0
send the element name and how you want to show hide the element, with using display it is "none" for hide, "block" for visible. My 2 centson't use document.all, just use getElementById; IE supports both methods!
Eric [ May 18, 2004: Message edited by: Eric Pascarello ]