jQuery mendapatkan teks yang dipilih dari multiselect
$("#id :selected").each(function (i,sel) {
alert($(sel).text());
});
Inexpensive Iguana
$("#id :selected").each(function (i,sel) {
alert($(sel).text());
});
$("#fm_delivery_or_collection option:selected").each(function () {
var $this = $(this);
if ($this.length) {
var selText = $this.text();
console.log(selText);
}
});
var text = $('#selector option:selected').toArray().map(item => item.text).join();