I have this:
<select id="CheckList" multiple="multiple">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
Is it possible with jQuery to get a full list of the options with separator between like this:
1,2,3,4
Use
map()andjoin()but you have to useget()on themap()result to convert it into a Javascript array (which has thejoin()method):