Hide A Table

Discussion in 'Javascript' started by Steve Bishop, Jan 29, 2004.

  1. Steve Bishop

    Steve Bishop Guest

    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!
     
    Steve Bishop, Jan 29, 2004
    #1
    1. Advertising

  2. Steve Bishop

    KC Wong Guest

    > 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
     
    KC Wong, Jan 30, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Williams
    Replies:
    2
    Views:
    1,145
    Jacob Yang [MSFT]
    Aug 12, 2003
  2. RA
    Replies:
    1
    Views:
    4,014
  3. David
    Replies:
    4
    Views:
    5,983
    Vidar Petursson
    May 21, 2004
  4. Rio
    Replies:
    4
    Views:
    1,215
  5. Replies:
    6
    Views:
    225
Loading...

Share This Page