I am having trouble getting a form to submit when the name attribute of the submit button is precisely "submit".
Here is the code:
The odd thing is that this will not work if and only if the name attribute is "submit". The problem is case-sensitive, so the following (and any other naming, including no name attribute) will work:
I have been looking over the W3C specs for some mention of a reserved name, but I could not find anything. I suspect I am overlooking something really obvious here, so I'm hoping some of y'all out there can see something I can't.
Thanks for any help.
以上就是Form submit button will not submit when name of button is "submit"的详细内容，更多请关注web前端其它相关文章！