get value of multiple select code example
Example 1: get value select 2
//get selected value
$('#mySelect2').find(':selected').val();
Example 2: how to get values from select multiple in js
document.getElementById('submit').onclick = function() {
var selected = [];
for (var option of document.getElementById('pets').options) {
if (option.selected) {
selected.push(option.value);
}
}
alert(selected);
}