drop-down menu problems

Discussion in 'JavaScript' started by davthewav, Aug 14, 2007.

  1. #1
    hi can someone help me with a javascript code i need?

    i'm want to get a drop-down menu where i have a number of options to chose from(say 5) i want to pick 1 of these options and then have that option sent to a text box(on the same page) then i would pick another option from the drop-down and that pick would be sent to another text box(below the first text box).
    i'm a very very beginner at this so my knowledge is almost nil on this......
    i would love to hear from someone...and appriciate the help.
    thanks.
     
    davthewav, Aug 14, 2007 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    assuming the text box is named text1 and the form is form1, you could simply add this to the select tag:
    
    onchange="document.form1.text1.value=this.value"
    
    Code (markup):
     
    frankcow, Aug 14, 2007 IP
  3. sharry

    sharry Peon

    Messages:
    319
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ive a working script on this problem jus pm i cant post entire thing here
     
    sharry, Aug 20, 2007 IP
  4. davthewav

    davthewav Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hi there!

    couldnt understand your message......
    what must i do again

    thanks for helping me

    dav
     
    davthewav, Aug 21, 2007 IP
  5. roscor

    roscor Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I have developed a 3 tier dropdown list which populates the next dropdown. I developed this from
    http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm

    I may give you some ideas to develop your own!
     
    roscor, Aug 21, 2007 IP