用jquery得到select里面选中的值
时间:2019-03-12 15:29:17
收藏:0
阅读:184
<select class="pushtype" name="push_type" onchange="pushType(this)"> <option value="0">系統功能類</option> <option value="1" selected=""selected"">營銷活動類</option> </select>
function pushType(e) { alert($(‘.pushtype option:selected‘).val()); alert($(‘.pushtype option:selected‘).text()); }
原文:https://www.cnblogs.com/clubs/p/10516970.html
评论(0)