This article provides a jquery traversal select tutorial code, which mainly uses the form of $("#<%=ddl_xreg_id.clientid%> option").each(function() { to traverse each once, so All selections are queried once
Method 2
function autoscrollregion() {
var reg_name = $("#<%=txt_reg_name.clientid%>").val();
$("#<%=ddl_xreg_id.clientid%> option").each(function() {
this).attr("selected", "selected");
break;
}
});
}