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. Advertisements

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. vishnu
    Replies:
    1
    Views:
    1,424
    Patrick.O.Ige
    Mar 25, 2006
  2. Mark Olbert
    Replies:
    7
    Views:
    1,691
    Patrice
    Jan 20, 2010
  3. Jim in Arizona
    Replies:
    0
    Views:
    525
    Jim in Arizona
    Apr 5, 2007
  4. Carlos Hernandez

    ComboBox selected index changed

    Carlos Hernandez, Sep 10, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    270
  5. Replies:
    4
    Views:
    224
  6. RCGUA
    Replies:
    0
    Views:
    278
    RCGUA
    Oct 2, 2009
  7. RCGUA
    Replies:
    6
    Views:
    887
    Thomas 'PointedEars' Lahn
    Oct 3, 2009
  8. Replies:
    5
    Views:
    656
    Roedy Green
    Oct 11, 2012
Loading...