Jquery获取select选中的option的文本信息

时间:2014-08-13 22:36:37   收藏:0   阅读:242

注意:下面用的$(this)代表当前选中的select框

第一种:

$(this).children("option:selected").text();

第二种:

$(this).children("option:selected").html();

Jquery获取select选中的option的文本信息,布布扣,bubuko.com

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!