jquery操作下拉框

来源:互联网 发布:360怎么禁止软件联网 编辑:程序博客网 时间:2024/09/21 06:35

让下拉框选中第一个

$("#modelItem_dataType option:first").prop("selected","selected");

获取选中的值

var modelItem_dataType =  $("#modelItem_dataType option:selected").val();
原创粉丝点击