I am trying to grab all selected items in the following select multiple and separate them by a comma. The code is below:
Add the values to an array and use join to create the string:
join
var items = []; $('#ps-type option:selected').each(function(){ items.push($(this).val()); }); var result = items.join(', ');