PDA

Click to See Complete Forum and Search --> : Hiding cells


parkes
Mar 8th, 2002, 08:40 AM
I want to be able to hidden some rows/columns within a table, till a certain option is choosen from a dropdown menu.

I've tried enclosing the <tr></tr> tags with <div> tags but this doesn't work.

Any one got an idea of a way to do this?

mendhak
Mar 8th, 2002, 09:23 AM
although I haven't tried it out, try using classes.

tr.hidethis {visibility :hidden;}


....

<TR id = "hidethis">...........</tr>

mendhak
Mar 8th, 2002, 09:24 AM
or was that stupid of me? damn.

parkes
Mar 8th, 2002, 09:24 AM
I've tried that one thanks, it still leave a gap in the table where the cells are hiding :(

JoshT
Mar 8th, 2002, 11:45 AM
Try "display: none;" as well. There's also a border-collapse, but I can't remember what that one does.