Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getting te value of select multiple value

var options = document.getElementById('select-meal-type').selectedOptions;
var values = Array.from(options).map(({ value }) => value);
console.log(values);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #te #select #multiple
ADD COMMENT
Topic
Name
5+4 =