how can i get all the selected value in tag SELECT?
<select id="list" multiple=multiple>
<option value="1" selected="selected">one </option>
<option value="2" selected="selected">two </option>
<option value="3">three </option>
</select>
for example use foreach as php???
live: http://jsfiddle.net/FMF7c/1/
how can i show with alert in this example one and two? I would like use JQUERY
Updated the JSFiddle – http://jsfiddle.net/FMF7c/5/
I’ve used simple JavaScript to loop through all the options in the select element, and add any of which are selected to an array.
Hah, looks like you didn’t need my help after all.