Javascript Submit does not include Submit Button Value

前端 未结 7 2170
野性不改
野性不改 2020-12-01 14:01

Ok, this is less of a question than it is just for my information (because I can think of about 4 different work arounds that will make it work. But I have a form (nothing

7条回答
  •  自闭症患者
    2020-12-01 14:41

    The submit button value is submitted when the user clicks the button. Calling form.submit() is not clicking the button. You may have multiple submit buttons, and the form.submit() function has no way of knowing which one you want to send to the server.

提交回复
热议问题