1$('.select2-multi option').prop('selected','true').map(option => option.value).join(',');
1$("#fm_delivery_or_collection option:selected").each(function () {
2 var $this = $(this);
3 if ($this.length) {
4 var selText = $this.text();
5 console.log(selText);
6 }
7});
8
1var text = $('#selector option:selected').toArray().map(item => item.text).join();
2