获取select控件的值和文本

来源:互联网 发布:螃蟹 知乎 编辑:程序博客网 时间:2024/05/04 15:29
$('#id option:selected').text();//选中的文本$('#id option:selected') .val();//选中的值

原创粉丝点击