下来菜单传值[asp+js]

(1)

下来菜单传值[asp+js]

<%
set ItemRs=server.CreateObject("adodb.recordset")
ItemSql="select * from Howia_SuggestionSort"
ItemRs.open ItemSql,conn,1,3
if ItemRs.eof and ItemRs.bof then   
Response.Write("暂无信息")
else
Response.Write("<select name=""SelectItem"" )
Response.Write("<option value=""0"" selected>选择大类</option>")
do while not ItemRs.eof
%>
<option )%></option>
<%
ItemRs.movenext                                                                                
loop   
Response.Write("</select>")
ItemRs.close                                                                                    
set ItemRs=nothing                                                                                        
end if
%>

(2)

下来菜单传值[asp+js]

传值 注意隐藏起来

(3)

 

下来菜单传值[asp+js]

<script type="text/javascript">
function ClassChange(locationid)
{ 
      document.getElementById('Keyword').value = document.getElementsByTagName("option")[document.getElementById("SelectItem").selectedIndex].value;
}
</script>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-05-21
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-29
  • 2021-07-17
  • 2021-06-25
  • 2021-10-18
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案