Not sure anyone understood your plight, as your wording is rather elusive.
What are you specifically trying to do again? What's the "backend" you're referring to? I saw the code it has nothing resembling items(values) on the markup or the js. If you meant to ask how to get the selected options of a 'multiple' Select element, check my previous reply to you, you iterate for all .selected ones.
On Thursday, October 4, 2012 12:26:03 AM UTC+5:30, (unknown) wrote:
> Not sure anyone understood your plight, as your wording is rather elusive.
> What are you specifically trying to do again? What's the "backend" you're referring to? I saw the code it has nothing resembling items(values) on the markup or the js. If you meant to ask how to get the selected options of a 'multiple' Select element, check my previous reply to you, you iterate for all .selected ones.
> Danny
Hey Danny,
Actually I want to submit all the items of select list.
Now am able to submit only one value whichever selected in select list,
I want to submit all the item(value) whichever present in the that list box currently , whether the user is selected or not those values.
Pervez Mulla wrote:
> In my code I want to pass all the items(values)present
> in select list to backend, Am trying to do that but am > not getting exact result.
> Now am able to pass only one item(value) to back-end, > Instead of that I want to pass all the value whichever > present in select list.
Non-selected values can't be retrieved by the receiving script, because they are simply not passed in the POST/GET request.
One possible workaround is to select everything in the box just before the submit-action:
hmmmm, did you ever bothered reading my reply to your previous issue on Deletion of options? it seems you didn't, as it shows how to get all .selected options. Anyhow, this was my example, check the code-> http://www.webdevout.net/test?01b&raw