how to get select option attribute value in javascript

In default mode this method returns the value of the value attribute of the FIRST matched element & sets the value of the value attribute for ALL matched elements. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. How it works: First, select the