Buttons don't work in chrome, but I haven't...">

Input type does not work in chrome ONLY

I saw some questions about simple

<input type="submit" /> 
Buttons

don't work in chrome, but I haven't found a solution yet. there is no js / jq to this button or to the onsubmit form. In addition, I say that it does not work in chrome, not webkit, because it works in safari, as well as in ie and ff.

Has anyone found a definitive answer on how to deal with this error?

EDIT: this voted for the reasons for b *, so here is a screenshot of the chrome console that had a bug that led me to my fix. enter image description here

I'll take my rep back tyvm: P

+1
source share
1 answer

ok, so I found what caused my instance of this problem to crash. Using the chrome console, I noticed that I used the input incorrectly, type = text, which was called "size". this caused chrome to throw an error and not continue to feed. I moved the input [name = "size"] from the form and it worked fine. I could change the name of this input window, but it would require me to change it in many cases, and the ajax associated with this field did not worry if it was named size

Lesson: Chrome doesn't like entering a name for a size

that is all

+1
source

Source: https://habr.com/ru/post/1387416/


All Articles