Form submit button not working in Google Chrome (jQuery Validate)

后端 未结 2 1100
北荒
北荒 2021-01-17 02:16

I\'m using the jQuery Validate plugin on my demo page and for some reason the Submit button doesn\'t work in Google Chrome. I suspect it has to do with the Autofill feature

相关标签:
2条回答
  • 2021-01-17 02:31

    I doubt the form action has a problem....??

    <form action="/contact_form_10-6-2011/contact.php#contactformWrapper" method="post" name="form1" id="contactform">
    

    Dun know why, but I found it bugging me.

    Are you using the same php file to read & parse the input as well??something like, Using PHP_SELF in the action field of a form

    0 讨论(0)
  • 2021-01-17 02:43
    <input name="submit" type="submit" value="Send Now">
    

    With this line you have overridden the form's "submit" function and replaced it with a button.

    form.submit = this button. Not an event handler.

    Fix: name the button something else.

    0 讨论(0)
提交回复
热议问题