79611
一个表单有两个不同的提交按钮,每个按钮对应各自的方法,请问该如何实现。
回帖数 6
阅读数 4331
发表时间 2010-10-19 16:40:51
<tr>
<td colspan='4' class='a-center'><?php echo html::submitButton() . html::resetButton();?>
<input type="button" value="提交" onclick="refer();"/>
<script type="text/javascript">
function refer() {
//window.alert($("#referForm").attr("method"));
$("#referForm").attr("action",'refer');
$("#referForm").submit();
}
</script>
</td>
我想问一下$("#referForm").attr("action",'?')中action的方法该怎么写?
<td colspan='4' class='a-center'><?php echo html::submitButton() . html::resetButton();?>
<input type="button" value="提交" onclick="refer();"/>
<script type="text/javascript">
function refer() {
//window.alert($("#referForm").attr("method"));
$("#referForm").attr("action",'refer');
$("#referForm").submit();
}
</script>
</td>
我想问一下$("#referForm").attr("action",'?')中action的方法该怎么写?
联系我们
联系人
刘斌/高级客户经理
电话(微信)
17685869372
QQ号码
526288068
联系邮箱
liubin@chandao.com

相关帖子
杨金莲 | 最后回帖 2017-09-19 09:28 杨金莲
曾sir | 最后回帖 2017-10-11 14:51 曾sir
你身边 | 最后回帖 2016-07-21 08:02 王春生
Mayer | 最后回帖 2016-05-20 10:44 石洋洋
于磊 | 最后回帖 2017-07-26 13:31 石洋洋
faxinba | 最后回帖 2017-07-20 17:33 石洋洋




精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


