Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Hide A Table

Reply
Thread Tools

Hide A Table

 
 
Steve Bishop
Guest
Posts: n/a
 
      01-29-2004
I would like to hide a table based on a fields value that is outside the
table. Does anyone have an example of this?
Help appreciated.

Steve



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
KC Wong
Guest
Posts: n/a
 
      01-30-2004
> I would like to hide a table based on a fields value that is outside the
> table. Does anyone have an example of this?
> Help appreciated.


Use the onchange handler of the field to trigger the script which set the
table's style, i.e.

document.getElementById("myTable").style.display = "none"; // Set to "" to
display normally
.......
<table id="myTable">
.......


HTH,

KC


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help - Hide a table while show a table michael941@gmail.com Javascript 6 12-10-2006 10:37 PM
[HIDE LAN] Hide a part of hosts into the LAN at VPN users? Paolo Bresi Cisco 1 04-04-2005 02:41 PM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
How to hide table rows and show them when user click a different row? RA ASP .Net 1 02-19-2004 10:53 PM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57