Select对象中有关onChange事件的参数传递

luoyong777 2006-09-08 10:37:18
<SELECT NAME="machine_id" onChange="javascript:window.location='maintain.asp?machine_id='+ this.options[this.selectedIndex].value;">
上面的一段代码在运行onChange事件时,调用maintain.asp程序,传递的参数只有一个machine_id,而且数据就是本身Select对象的数据。

问题:
如果在传递machine_id的同时还有另外一个变量bind_id也需要传递,其数据来源于Bind_id对象的数据,该代码应该如何修改?
...全文
603 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
mingxuan3000 2006-09-08
  • 打赏
  • 举报
回复
onChange="javascript:window.location='maintain.asp?machine_id='+ this.options[this.selectedIndex].value+'&bind_id='+document.getElementById(\'bind_id\').value);">
luoyong777 2006-09-08
  • 打赏
  • 举报
回复
up

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧