html form help

Discussion in 'HTML & Website Design' started by harrisonford, May 3, 2008.

  1. #1
    simple problem

    ive made a simple dropdown box with say 5 options

    when you select an option i want a pre defined number to show up below the box

    cant work it out lol
     
    harrisonford, May 3, 2008 IP
  2. Abuntis

    Abuntis Peon

    Messages:
    127
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could use a javascript function to see what has been selected

    selected= document.getElementById("dropdown").value;

    then use this value to update your box.
     
    Abuntis, May 3, 2008 IP