Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Form Submit not Working in Chrome?

I find a strange behavior in Chrome.
I have Form to Edit a Record Details.

When user clicks on Edit in a list of Records Grid. my Page loads a Form with all the details of the record loaded in the form. here comes the interesting problem. If i don't edit any fields in the form and just clicks submit button. Everything works fine.

But if I Edit any input field and then click submit.

Then chrome is not submitting the form.

It works absolutely 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 No Use

Further Observation.


I notice. i have different text area, text box, date filed. I can change any filed and submit the form with no problem. But if i change the quantity field and Submit then it wont work.

like image 849
HaBo Avatar asked Dec 21 '11 16:12

HaBo


People also ask

Why submit button is not working in Chrome?

Sometimes the problem is caused by old versions of the Javascript files, cached by your browser and can be fixed by clearing the browser cache. You can use the browser console of your browser for debugging. After the Javascript error is fixed, the submit button will automatically be enabled.

How do I get submit button to work in Enter?

You need to add an <input type="submit"> and hide it with CSS so that the browser knows what to trigger when enter is pressed, yet still not show a button. For the sake of accessibility and ease of use, I'd show the button even if not that many people use it (enter is much nicer).

Why form is not submitting in jQuery?

The NUMBER ONE error is having ANYTHING with the reserved word submit as ID or NAME in your form. If you plan to call . submit() on the form AND the form has submit as id or name on any form element, then you need to rename that form element, since the form's submit method/handler is shadowed by the name/id attribute.

How do I automatically submit a form without clicking?

Submit a Form Using JavaScript The most simple way to submit a form without the submit button is to trigger the submit event of a form using JavaScript. In the below example we are going to create a function to submit a form. We will set that function at onclick event of a div tag.


2 Answers

Can you try changing the name of the button from submit to something else like btnSubmit and try? That should work.

like image 65
Venkatarajan Arthanari Avatar answered Oct 02 '22 15:10

Venkatarajan Arthanari


I have come across the same issue this morning. I checked in the chrome console no errors reported. Just clearing the browser cache has fixed this issue.

like image 25
Naga Avatar answered Oct 02 '22 15:10

Naga