IE FF Select onchange获取值兼容问题
r selectValue;
var idx = select.selectedIndex, option, value;
if (idx > -1) {
option = select.options[idx];
value = option.attributes.value;
selectValue = (value && value.specified) ? option.value : option.text;
}
}
[/c
原创
2014-04-03 10:11:50 ·
193 阅读 ·
0 评论