jQuery获取Select选中text值

来源:互联网 发布:查看端口占用情况linux 编辑:程序博客网 时间:2024/04/24 20:51

之前找了一大堆,都不能用,最后自己写了一下,居然能用了,分享给大家

 var item = $("select[name='" + listItemId + "']").find("option:selected").text();

 

原创粉丝点击