How to dynamically show the HTML based on combobox selected value

Discussion in 'HTML' started by Mullin, Mar 8, 2005.

  1. Mullin

    Mullin Guest

    hi,

    i want to dynamically show the HTML control based on the combo box
    value. Say, by default, it will show A and B. if select "Show A", only
    A's will be shown, B's will be hidden, and vice and verse.

    any ideas how to implement so?

    thanks!

    here's pseudo coding:

    <select name="choice">
    <option value="1">Show A</option>
    <option value="2">Show B</option>
    <option value="0" selected>Show A and B</option>
    </select>
    ......
    ......

    <table>
    ....
    ....
    <tr>
    Show A with HTML code
    </tr>
    ....
    ....
    <tr>
    Show B with HTML code
    </tr>
    ....
    ....
    </table>
     
    Mullin, Mar 8, 2005
    #1
    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. Mark Olbert
    Replies:
    7
    Views:
    1,469
    Patrice
    Jan 20, 2010
  2. Carlos Hernandez

    ComboBox selected index changed

    Carlos Hernandez, Sep 10, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    169
  3. RCGUA
    Replies:
    0
    Views:
    207
    RCGUA
    Oct 2, 2009
  4. RCGUA
    Replies:
    6
    Views:
    647
    Thomas 'PointedEars' Lahn
    Oct 3, 2009
  5. Replies:
    5
    Views:
    483
    Roedy Green
    Oct 11, 2012
Loading...

Share This Page