How to submit the form with input type="button"?
<form action="#" method="POST"><input type="button" value="这是提交的内容"><input type="submit" value="提交"></form>
By the way, there is also
<form action="#" method="POST"><input type="submit" value="提交"></form>
Add name attribute
<form action="#" method="POST" id="inputForm"><input type="button" value="这是提交的内容"><input type="submit" onclick="checksubmit()" value="提交"></form>
function checksubmit(){ $("#inputForm").submit();//jquery方式. //document.getElementById("inputForm").submit();原生js方式,未测试.}
Add the name attribute so that the background can recognize it. Or submit using ajax