I am trying to grab all selected items in the following select multiple and separate them by a comma. The code is below:
Here you go:
var result = new Array(); $("#ps-type option:selected").each(function() { result.push($(this).val()); }); var output = result.join(", ");