The form does not work in Chrome?

I find strange behavior in Chrome.
I have a form for editing an entry.

When the user clicks on "Edit" in the "Grid" list. my page uploads a form with all the details of the entry uploaded to the form. an interesting problem arises here. If I do not edit any fields on the form and just click the submit button. Everything is working fine.

But if I edit any input field, then click Submit.

Then chrome does not send the form.

It works fine in IE

I tried changing my submit button

<input type="submit" value="Continue" name="submit" class="standard button" id="ContinueButton" onclick="isValidDate()"> 

to

 <input type="submit" value="Continue" name="submit" class="standard button" > 

But do not use

Further observation.


I notice. I have another text area, text box, date. I can change any filed and submit the form without any problems. But if I change the quantity field and send, it will not work.

+4
source share
8 answers

Can you try changing the name of the button to send to another, for example btnSubmit and try? That should work.

+1
source

This morning I came across the same question. I checked in the chrome console no error messages. Fixed error clearing browser cache.

+1
source

What is your doctype and html type? Have you tried to close the tag inside?

0
source

I see that this is an old thread, but I just experienced the same problem when the send button did not like the chrome. it turns out that chrome was dying because I had an input named size. I found this by looking at the chrome console. I would suggest looking at your chrome console and see if there is a form element that can cause a problem aside from javascript.

hope this helps!

0
source

I had this problem, and because the form tags were away from the table, and not outside. I'm not sure why this mattered in this case, since I use the same code elsewhere, but when I modified it, it worked.

0
source

I call the javascript method in the onClick submit method. And I file the form from there. My problem was resolved when I changed the input type from submit to a button.

0
source

Not sure if this is due to the originally stated issue, but it may be related to those experiencing an asymmetric reaction to sending a button response between Chrome and IE.

IE, in some cases, is more forgiving than Chrome. I found this discussion, while the study is similar in appearance.

In my form, the problem was the most common, located about 18 inches from the monitor. Somehow, in my encoding, I gave a div that contained the container of the form id = 'contact', and the form had name = 'contact'. The submit button worked in IE, as expected, with this layout using form = 'contact' in the submit button. However, Chrome ignored button clicks without any hints as to why in the console.

After a short time spent on various alternatives - creating onclick events in the submit button, etc., I accidentally stumbled upon a real problem. (the form identifier seems to be the authoritative handle for Chrome, while IE seems to take on the value of the name?)

Entering this here if someone else stumbles upon this scenario.

I saw this effect again - IE also more forgives inconsistent curly braces, while Chrome didn't play - ignored the code that referenced the document.

0
source

The problem is in your Javascript code.

-4
source

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


All Articles