$('body').on('click','select[id^=selectid] option:not([disabled])',function(){
})
在IE中 select[id^=selectid] option:not([disabled]) 读取不了?
$('body').on('click','select[id^=selectid] option:not([disabled])',function(){
})
在IE中 select[id^=selectid] option:not([disabled]) 读取不了?
ie9以前不能为option绑定任何事件,应该用
$('body').on('change','select[id^=selectid]',function(){
var option = $(this.options[this.selectedIndex]);
})