天天看點

擷取select option 之間的文本值

1.擷取option文本值:

var obj = document.getElementById("company");

var company = obj.options[obj.selectedIndex].text;