get selected values in multiselect jquery code example
Example: get selected values in multiselect jquery
$('.select2-multi option').prop('selected','true').map(option => option.value).join(',');
$('.select2-multi option').prop('selected','true').map(option => option.value).join(',');