У меня есть что-то вроде этого:
select = document.getElementById("select");
select.onchange = function(){
alert(this.value); //returns the selected value
alert(this.innerHTML); //returns the entire select with all the options
alert(this.selected.innerHTML); //this is what I want, but doesn't work, of course
};
Как я могу получить innerHTML выбранной опции в чистом js? (без рамок).