travisbrown
Technical User
- Dec 31, 2001
- 1,016
Okay, I haven't been able to find any helpful reference to this on the Google yet, but I'm sure someone must have a simple solutions.
I need to post or get a form using XMLHttpRequest. The form has a multiple select box. How do you group all the values into either select=a,b,c or select=a&select=b&select=c? Simply calling the values like I would other form items only seems to call the first selected index.
Or... is there a way to automatically collate all the name/value pairs of a form into a querystring-like variable for submission?
I need to post or get a form using XMLHttpRequest. The form has a multiple select box. How do you group all the values into either select=a,b,c or select=a&select=b&select=c? Simply calling the values like I would other form items only seems to call the first selected index.
Or... is there a way to automatically collate all the name/value pairs of a form into a querystring-like variable for submission?