jquery处理select-option问题

$("#shi").find("option:[text='成都市']").attr("selected", true);//该方法不行,原因不明,可能是因为自我不理解吧。(在chrome下)

$("#shi option:contains('成都市') ").attr("selected", "selected"); //该法可行,在chrome下

posted @ 2017-05-09 21:13  小丶明  阅读(110)  评论(0编辑  收藏  举报