根据某个值改变所有select中value为该值的option为选中状态

//先清除之前的选中状态然后选择、不然的话会导致选过的不能再选中
$(".cldw").find("option[value = '"+dwVal+"']").removeAttr("selected");
$(".cldw").find("option[value = '"+dwVal+"']").attr("selected","selected");
posted @ 2017-11-01 13:46  小灰狼先生  阅读(2656)  评论(0编辑  收藏  举报