当前位置:Gxlcms > html代码 > form表单中要提交的input为type="button"时怎么提交啊?_html/css_WEB-ITnose

form表单中要提交的input为type="button"时怎么提交啊?_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:46人阅读

form表单中input为type="button"怎么提交啊?
  


回复讨论(解决方案)

对了还有就是

怎么提交这里面的input本身的值:“提交”? 

加上name属性


  
通过js控制:
function checksubmit(){     $("#inputForm").submit();//jquery方式.     //document.getElementById("inputForm").submit();原生js方式,未测试.}

加上name属性,后台才能识别。或者用ajax提交

人气教程排行