Daniel St. Jules Posted September 7, 2008 Share Posted September 7, 2008 Hey all, I'm hoping someone may assist me in this matter. I have a form, and the form contains a select field with multiple="multiple", and a hidden field. I'd like to have the contents of the select, upon change, be added to the hidden field. To separate the different values of the select options in the hidden field, I'd like to use spaces. So, an example of the result would be: Select option 1 value = 20 option 2 value = 40 option 3 value = 50 option 5 value = 200 And, if option 1 and 5 were selected, then the value of the hidden field would look like this: 20 200 Any ideas as to how I could accomplish this? Any and all help would be greatly appreciated! Thanks. Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 8, 2008 Share Posted September 8, 2008 Well, you've already marked the topic as solved, but I have to ask. If you already have a select field that allows multiple inputs, why do you need to populate the selected values into a hidden field? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.