Jquery 操作DropDownList 根据条件选中
$("#<%=DDLCounty.ClientID%> option").each(function () {
if ($(this).text() == $("#<%=HFCounty.ClientID%>").val()) {
$(this).attr("selected", true);
}
});
$("#<%=DDLCounty.ClientID%> option").each(function () {
if ($(this).text() == $("#<%=HFCounty.ClientID%>").val()) {
$(this).attr("selected", true);
}
});