input type submit not working in ONLY chrome [closed]

僤鯓⒐⒋嵵緔 提交于 2020-01-24 20:33:04

问题


I've seen several questions asked about simple

<input type="submit" />

buttons not working in chrome, but I still am yet to find a solution. there is no js/jq attached to that button or to the form's onsubmit. Furthermore, I say it's not working in chrome and not webkit because it is working in safari, as well as ie and ff.

has anyone found a definitive answer on how to deal with this bug?

EDIT: this got voted down for b* reasons so here is a screenshot of the chrome console throwing the error that led me to my fix.

i'll take my rep back tyvm :P


回答1:


ok, so i found what was causing my instance of this problem to crash. Using chrome's console, I noticed that I had incorrectly used an input, type=text, that was named 'size'. this was causing chrome to throw an error and not continue with the submit. I moved the input[name="size"] out of the form and it worked fine. i could have changed the name of that input box, but that would require me changing it in a lot of instances, and the ajax involved with that box didn't care if it was named size

lesson: chrome doesn't like input's named size

that is all



来源:https://stackoverflow.com/questions/10955376/input-type-submit-not-working-in-only-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!