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

相关帖子
Hawy | 最后回帖 2017-05-23 09:47 王春生
私奔的花卷 | 最后回帖 2024-11-15 13:16 王林
小明 | 最后回帖 2020-09-24 17:40 王林
偷着乐的小青年 | 最后回帖 2016-03-15 17:14 石洋洋
名义 | 最后回帖 2021-08-24 12:34 微微
tomcat | 最后回帖 2026-04-13 09:07 禅道-王誉霖



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


