from表单多个按钮提交用onclick跳转不同action

时间:2014-04-24    点击:72   
复制代码 代码如下:

<form name="form1" method="post" action="ad/BusinessAction!list.action">

//下面input框提交的action不同,用onclick跳转,写一个js方法

<input type="button" class="mulButton" name="Ids" id="allcheck" onclick="manySend('ad/BusinessAction!sendmany.action')" value="批量导入到成功案例"/>

<script>

//js方法如下

function manySend(href){
var form = document.form1;
form.action = href;//传想要跳转的路径
form.submit();
}

</script>
原生javascript模仿win8等待提示圆圈进度条
js如何判断用户是在PC端和还是移动端访问
jquery 扑捉回车键事件代码
IE中的File域无法清空使用jQuery重设File域
js 动态为textbox添加下拉框数据源的方法
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved