Get multiple select option value in javascript

Form HandlingJavascript Form Handling.

This article is in continuation of getting form element values using JavaScript series. We can obtain a reference to this type of element using its name:. To get the index of the selected option in the JavaScript options array of the select element, we can use the selectedIndex property of the select element object:.

javascript - How to get all selected values from