How can I get the value of dynamically created input?

How do you get a drop down menu to fill in an input area in HTML?

  • I'm attempting to allow a user to a) type in his own name, or B) select it from a drop down menu. The problem i have is I can not for the life of me figure out how to get the drop down menu to fill in the preselected name. code: <html> <head><title>Being Developed</title></head> <body> <h1>In Development</h1> <select name="mydropdown"> <option value="One">Person 1</option> <option value="Two">Person 2</option> <option value="fname">Person 3</option> </select> Name: <input type="text" name="fname" value="fname"/> <input type="submit" value="Submit" /> </body> </html> The idea is if you select Person 2, it fills in the input box with "Person 2" and so on with the other options.

  • Answer:

    The way I'd do it is to have your menu item link to a form with that person already filled in.

That one guy at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.