62,046
社区成员
发帖
与我相关
我的任务
分享
var city =$("<%=HiddenField1.ClientID %>").value;
if(city!="")
{
var city =city.split(',');
var s1 = $("<%=dropSheng.ClientID %>");
var s2 = $("<%=dropCity.ClientID %>");
var s3 = $("<%=dropArea.ClientID %>");
for(i = 0;i<s1.length;i++){
if(s1.options[i].text == city[0]){
s1.options[i].selected = true;
}
}
for(i = 0;i<s2.length;i++){
if(s2.options[i].text == city[1]){
s2.options[i].selected = true;
}
}
for(i = 0;i<s3.length;i++){
if(city.length>2)
{
s3.style.display="block";
}
}
}