<script>
function my(theform)
{
if(theform.check1.checked)
theform.action="ur.asp?id=xxx"; //check1为checkbox的name
else
theform.action="sd.asp?id=xxx";
return true;
}
</script>
<form action="" method="post" onsubmit="return my(this)">
……
function my(theform)
{
if(theform.check1.checked)
theform.action="ur.asp?id=xxx"; //check1为checkbox的name
else
theform.action="sd.asp?id=xxx";
return true;
}
</script>
<form action="" method="post" onsubmit="return my(this)">
……
解决方案 »
- [jquery]$.getJSON()方法的回调
- 让IE在直接请求js文件时在网页上显示javscript源代码,像ff一样
- 高难问题:框架子页如何操作子页的元素问题?
- 高分求解Extjs中dataview 的问题
- 高手进来帮忙,ctrl多选问题
- 各位大哥求救,显示XML数据的问题!!!!!!!!
- 操作系统问题还是IE设置问题还是功能实现...----网页下载对话框的疑问
- 一个表格,一个按钮,我想通过javascript,每点一个这个按钮,这个表格就增加一列,可以吗?
- 页面进入时的特效————渐变,从无到有,不会做
- 菜鸟提问,大虾帮忙
- javascript里面怎么获得jsp里面的变量?
- 如何让浏览器状态栏与地址栏的TabIndex=-1
<input type=checkbox name=mm><input type=submit></form>
<input type=checkbox name=mm><input type=submit></form>
a=request.form("a")
b=request.form("b")
接受到的參數,可以這樣寫嘛?
if(theform.check1.checked)
theform.action="ur.asp?a=a"; //check1为checkbox的name
else
theform.action="sd.asp?a=a";
return true;