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
Related Q & A:
- How can I open a non-profit organization in the San Francisco Bay Area?Best solution by Yahoo! Answers
- How do you get a sound when you get your emails?Best solution by Yahoo! Answers
- How do I get to the messenger menu?Best solution by Yahoo! Answers
- How can I get a text alert when I get an email?Best solution by Yahoo! Answers
- How can I get a job at a resort for a Summer?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.