Click to See Complete Forum and Search --> : I'm a newbie


lelebug
09-27-2003, 08:14 AM
I would like to find a way to set the visibility style to hidden to all html objects having the same class name.
Is it possible?

thanks in advance.
Lelebug

Khalid Ali
09-27-2003, 08:29 AM
yes,set the visibility:hidden;
in the class that all of those elements use..

lelebug
09-27-2003, 08:35 AM
Yes, I know that, but i want to set the objects to hidden only if user disabled it on the database.

Thanks

tinernet
09-27-2003, 08:46 AM
you'd have to use somethin like the following. ud put this in the function that runs when u disable the visiblity:

document.[object].style = "visibilty:hidden";

Khalid Ali
09-27-2003, 08:48 AM
Originally posted by lelebug
Yes, I know that, but i want to set the objects to hidden only if user disabled it on the database.

Thanks

they way you phrased your question it does not differentiate that you knew that.....

anyways...
steps to take.

1. read the db
2. get the value that determines visibility of the elements
3. and then scplicitly set the style="visibility:hidden" fo those elements