Forum Moderators: open

Message Too Old, No Replies

Button to expand/collapse tables

while using FrontPage or plan text edition

         

Jakotsu

3:20 pm on Apr 26, 2005 (gmt 0)

10+ Year Member



How do I add a button at the first row of a table to show or hide the bottom row? This is very common and should not require additional scripts I think.

BlobFisk

6:09 pm on Apr 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You will need to use a script to do this I'm afraid!

You need to build an array of all the rows in your table and then toggle the display of the last array item to none... Or you can add a class to the row(s) that you want to hide and again build an array of the rows and toggle the display of the row(s) with the className to none.

I say use a class rather than an ID, as it gives you the option to hide (and show) more than one row.

So, unfortunately yes! A script is required!

Jakotsu

2:59 am on Apr 27, 2005 (gmt 0)

10+ Year Member



Thanks. Any idea where I could find this script already made?