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.
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.
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).
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.
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.
Can you try changing the name of the button from submit to something else like btnSubmit and try? That should work.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With