一个form表单中两个按钮点击事件以及系统提示用户

<script type="text/javascript">
function _drawback() {
document.form1.action = "shoppingAction!apply_drawback";
document.form1.submit();
}
function affirm_Receive() {


if (confirm("系统提示您!钱将打入卖家账户,确定?")) {
document.form1.action = "shoppingAction!affirmReceive";
document.form1.submit();
} else
window.event.returnValue = false;
}

</script>

<form>

<tr>
<td height="22" colspan="7" align="center" background=""
bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="1">合计
: ¥ <%=(Integer.parseInt(Util.number))*6 %>
<div align="right">
<input type='hidden' name='amount' value=<%=(Integer.parseInt(Util.number))*6 %> id='amount' /> <input
name="submit2" type="submit" value="申请退款"
class="btn btn-small btn-info" onClick="_drawback()" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="submit2" type="submit" value="确认收货"
class="btn btn-small btn-info" onClick="affirm_Receive()" />
</div>
</td>
</tr>

</form>
其中以上的Util类为

public class Util {
/**
* 存放文件名
*/
public static String uploadFileName="";
/**
* 存放文件完整路径
*/
public static String uploadFileUrl="";
public static int userId=0;
public static String number="";
}


转载于:https://my.oschina.net/u/1035715/blog/184942

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值