Current location: Hot Scripts Forums » General Web Coding » JavaScript » hiding table borders and everything in it with onclick


hiding table borders and everything in it with onclick

Reply
  #1 (permalink)  
Old 05-16-04, 02:45 AM
mivec mivec is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy hiding table borders and everything in it with onclick

hi all,
i don't know if this can be done but i need a jscript that can hide the table borders and everything in that table and just show the header.

Quote:
imagine we have 3 table, when i click an icon on table 1 the other 2 will hide it's contents and show only the header. As in hide the <tr><td></td></tr> and show only <tr><th></th></tr>..something like that. and the script must contain more dynamic functions.
can someone pls guide me to this?kinda lost..thanks
Reply With Quote
  #2 (permalink)  
Old 05-24-04, 08:54 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
To be honest, this problem gave me a hard time...
But, you could redesign the tables a bit to get around it.
You have this "master" table with two rows. The first row contains the headers and the second row contains a bunch of <div>-tags.
The <div>-tags can be hidden or shown at any time so they are the perfect place to put your original tables in, without the headers of course...
Then just make a small script for each one of the buttons so they set the properties of the div-tags correctly...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 02:20 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.