$("#<%=DDLCounty.ClientID%> option").each(function () { if ($(this).text() == $("#<%=HFCounty.ClientID%>").val()) { $(this).attr("selected", true); } });