I am trying to grab all selected items in the following select multiple and separate them by a comma. The code is below:
var list = ""; $('#ps-type option:selected').each(function(){ list += this.value + ", "; }); return list.substr(0, list.length - 2);