Do select elements have a standard value property?
问题 This is a simple question but I cannot find any reference so here it goes. Assume I have a select element: <select id="sel"> <option value="1">1</option> <option value="2">2</option> </select> Now I want to get its selected option's value . Most often I see this kind of snippet being used: var sel = document.getElementById('sel'); console.log( sel.options[sel.selectedIndex].value ); //1 Which works great. However, I've found out that select elements also have a value property: console.log(