Hello,
I was wondering if anyone could help me with hiding/showing a column of data in a table. It should remain hidden until the user inputs a password into a textbox and clicks a button, then the column will show itself. Anyone have any ideas of how to get started doing this? I'm not sure how to hide/show cells without php, let alone with it. Any help or advice would be awesome, thank you.
Shadow
showing/hiding columns in a table
Moderator: General Moderators
-
shadow2026
- Forum Newbie
- Posts: 2
- Joined: Tue May 02, 2006 9:39 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Ohhh... that's actually pretty tricky to do with JavaScript because a column is actually the cell at position X across N rows so you need to use some looping to collapse it down. It may be easier to "fake" the column by floating a separate table next to the original one and then literally hiding the whole table.
Style Properties you want to look into playing with are: display, visibility, borderCollapse.
Style Properties you want to look into playing with are: display, visibility, borderCollapse.
-
shadow2026
- Forum Newbie
- Posts: 2
- Joined: Tue May 02, 2006 9:39 am