select标签 获取选中的option的value及Text内容
a
b
以上是select的onchange方法,传了两个参数,分别是选中的option的Value(this.value)和选中的option的内同(this.options[this.selectedIndex].text)。这样就可以在onchange方法中直接使用值和内容了。
function getContent(value,content){
ale
转载
2017-06-29 12:26:18 ·
563 阅读 ·
0 评论