Jquery-js jquery submit () The reason for the failure of the event __js

Source: Internet
Author: User
Jquery-js JQuery Submit () The cause of the failure for a long time did not write something, today remembered to do a registration page, used to JQuery, I made a button when submitting buttons,
Validates the form data when the Click () event is successful, and the validation is completed with the $ (#form1). Submit () Event Submission form. Adjusted for nearly 1 hours, the form data is always unable to submit out, Firefox, Google browser and IE do not have any JS error prompts. Inadvertently, I saw that the ID and name of the button used as the submit action were equal to submit, presumably because the browser took the button named submit as an object. Exactly the same as the Submit () event name. So I changed the button's name and ID of the value of Submit1, modify the corresponding JS, click button buttons, form verification is successful after the implementation of the submit () action, accomplished. Unexpectedly a small detail, let me spend a lot of time, think of the programming language system reserved keywords, really a little careless, in simple HTML programming will have the same problem. I write this diary so that I can raise myself today and should pay attention to the details at any time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.