79611
一个表单有两个不同的提交按钮,每个按钮对应各自的方法,请问该如何实现。
回帖数 6
阅读数 4366
发表时间 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的方法该怎么写?
联系我们
联系人
高丽亚/高级客户经理
电话(微信)
17667930330
QQ号码
3645260865
联系邮箱
gaoliya@chandao.com

相关帖子
Kola | 最后回帖 2017-07-03 11:29 石洋洋
剧终人散i | 最后回帖 2017-12-01 12:13 禅道-李锡碧
chengaomin | 最后回帖 2019-08-06 16:07 禅道-李锡碧
曾sir | 最后回帖 2018-01-18 13:01 石洋洋
xiaoxiao | 最后回帖 2016-04-20 16:23 xiaoxiao
偷着乐的小青年 | 最后回帖 2016-03-15 17:14 石洋洋



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


