14917 次
		
3 回答
            13        
        
		
这些中的任何一个都可以工作:
find by :selected 后代中的伪选择器
this.getElement(':selected');
获取第一个选定的值
this.getSelected()[0];
纯 javascript,使用 selectedIndex 属性
this.options[this.selectedIndex];
    于 2010-03-17T09:20:22.737   回答
    
    
            4        
        
		
只需访问selectedIndex选择元素(this事件处理程序中的对象)上的属性即可获取选项索引。
// get the index of the selected option
var index = this.selectedIndex;
// get the option element
var opt   = this.options[index];
    于 2010-03-17T09:07:26.803   回答
    
    
            0        
        
		
event.target.id是对象
event.target.value是新值
于 2014-09-17T12:56:30.593   回答