Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript select multiple values

const selected = document.querySelectorAll('#select-meal-type option:checked');
const values = Array.from(selected).map(el => el.value);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #select #multiple #values
ADD COMMENT
Topic
Name
4+8 =