<select onchange="javascript:a.value=this.options[this.selectedIndex].value">

解决方案 »

  1.   

    <select onchange="javascript:location.href=this.options[this.selectedIndex].value">
      

  2.   

    是刷新的的问题呀,onchange="javascript:location.href=this options[this.selectedindex].value"
    你可以把选择的值传递到新页面,用Request.Querystring("xx")来取,根据这个值进行判断是否selectedif Request.Querystring("xx") = "xxx" Then Response.write "<option value=""index.asp?v=" & rs("地区") & """ name=select selected>" & rs("地区") & "</option>"
      

  3.   

    是刷新的的问题呀,onchange="javascript:location.href=this.options[this.selectedindex].value"
    你可以把选择的值传递到新页面,用Request.Querystring("v")来取,根据这个值进行判断是否selectedif Request.Querystring("v") = rs("地区") Then
    Response.write "<option value=""index.asp?v=" & rs("地区") & """ name=select selected>" & rs("地区") & "</option>"
    Else
    Response.write "<option value=""index.asp?v=" & rs("地区") & """ name=select>" & rs("地区") & "</option>"
    End if