Question: how to get the selected value of listbox in javascript?
Answer: The value Property So the value of the selected option can be obtained in JavaScript as follows: // reference to 'scripts' select list // used throughout the examples below var sel = document. getElementById('scripts'); // display value property of select list (from selected option) console. log( sel.