给出以下HTML:
如何使用Javascript/DOM获取字符串"显示的文本1"?
var sel = document.getElementById("my_dropdown"); //get the selected option var selectedText = sel.options[sel.selectedIndex].text; //or get the first option var optionText = sel.options[0].text; //or get the option with value="1" for(var i=0; i