html multiselect get values code example
Example 1: get array of selected options from select element
var values = $('#select-meal-type').val();
Example 2: javascript select multiple values
const selected = document.querySelectorAll('#select-meal-type option:checked');
const values = Array.from(selected).map(el => el.value);