如何在Javascript中为两个底部定义两个不同的动作 [英] How Can I Define Two Difrent Action For Two Bottom In Javascript
本文介绍了如何在Javascript中为两个底部定义两个不同的动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好大家我有一个html表格,表格就在那张桌子上我有一个底部for addrow在我的表格中,我需要添加一个提交底部来发布mysql中的表格数据当我添加它时有一个为我的两个底部采取行动......那我怎么能改变呢?
非常感谢你。
解决方案
我想你的意思是按钮。
所以,如果您设置输入type =submit$ c,请解决您的问题$ c>,那么它将作为提交按钮并将所有数据提交到指定的
动作
。
您可以将type =button
设置为其他按钮正常工作按钮
hello everybody i have a html form with a table on it in that table i have a bottom for addrow in my table, i need to add a submit bottom to posting the data of table inside mysql when i add it there is one action for my two bottom ... So how can i change it ?
thank you very much.
解决方案
I guess you meant Button.
So, coming to your problem, if you set inputtype="submit"
, then that will act as Submit Button and will submit all the data to theaction
specified.
You can settype="button"
for other Buttons to work as normal Button.
这篇关于如何在Javascript中为两个底部定义两个不同的动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文