12 lines
267 B
JavaScript
12 lines
267 B
JavaScript
|
|
export function get_select_data(select) {
|
|
let values = [];
|
|
for (let i = 0; i < select.options.length; i++) {
|
|
let option = select.options[i];
|
|
if (option.selected) {
|
|
values.push(option.value.toString());
|
|
}
|
|
}
|
|
|
|
return values;
|
|
}
|