Click to See Complete Forum and Search --> : Newbie question - testing visibility


gwntrav
07-13-2003, 01:29 AM
Hi,
I'm trying to perform validation on a form based on whether certain panels within the form are visible or not.

Can someone tell me the easiest way to check whether a panel is visible?

Much appreciated!

Khalid Ali
07-13-2003, 05:44 AM
you will need to set css property visibility="hidden" ezplicitly for all of the panels and then you can check for it.
alert(document.getElementById("panelID").style.visibility)