jquery获取select标签被选中的值

方案:通过option标签的select属性来获取文本与值

 

jQuery中获得选中select值

第一种方式
$('#adverId option:selected').text();//选中的文本

$('#adverId option:selected') .val();//选中的值

$("#adverId").get(0).selectedIndex;//索引

 

第二种方式

$("#adverId").find("option:selected").text();//选中的文本

posted @ 2015-05-26 17:48  未知之事  阅读(1502)  评论(0编辑  收藏  举报