Jquery 操作DropDownList 根据条件选中

$("#<%=DDLCounty.ClientID%> option").each(function () {
         if ($(this).text() == $("#<%=HFCounty.ClientID%>").val()) {
                  $(this).attr("selected", true);
          }
 });
posted @ 2016-08-14 14:07  李元伟丶  阅读(573)  评论(0)    收藏  举报