Hello Experts, I have a question for you. Keep in mind that I am a noob. Please dont bash me. Thank you in advance for your help.
I am looking for a javascript code that will take data inserted into a text box (form?) and put it into a drop down box.
For example, a user comes to my website and in a text box enters:
1
2
3
4
5
and the user clicks "OK"
I want the javascript to take the 1 2 3 4 5 and put it into a drop down box. The drop down box is right besides the text box. Then once the data is properly in the drop down box the user can "SUBMIT" (VIA POST) this information to me.
Thanks for your help, I will not mind paying for this if necessary.
Aerospace thank you so much for that. It's almost what I needed.
In your code the drop down is fed by an input box that can only accept one number. I actually need like a textarea where a user can enter multiple numbers (line by line) like:
2
4
7
10
and then they get "moved" into the drop down box as follows:
I need this because I have a form that must be submitted using the select element. To feed the data for submission I need the user to type in some numbers.
Still I don't see the point... From the CGI/server side point of view, it does not matter which kind of the controls (input, select...) sends data. As long as you have already a control (input, textarea...) why to double the data sent?.... Server side application will receive both your text control data and your select control data as well.
Okay now I think you should explain what it is that you are really trying to do as it seems to you are trying to get around something since you have no control of the server side stuff.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
Im trying to submit values to a server. Users will come to my site and type in some numbers in a textarea like....
52151
91818
13518
46618
39184
I need those numbers converted into an option value in a select drop down box.
The server is not owned or operated by me. The server is configured to only process drop down value numbers. This is for a weather application. Users are entering zip codes to see weather in their surrounding area. No harm being done here.
Last edited by holyearth; 10-13-2006 at 03:31 PM..
Aerospace, can you PM me with an email address perhaps? I would really like to paypal you some funds for helping me out. I appreciate your time. If you want, please email me at holyearth [at] gmail.com