select设置选中与不选中

//找到选中的后 设置不选中

$("#id").find("option:selected")[0].selected=false;

//设置默认为选中 

$("#id").find("option[value='']").prop("selected", true);

猜你喜欢

转载自blog.csdn.net/luo_yu_1106/article/details/86707133