jquery submit () does not execute

Source: Internet
Author: User
Tags button type

Well, I admit I made a mistake ... I confess ... To remind myself to be pinned for a week

<formID= "form"Method= "POST"><inputtype= "text"name= "Ceshi"value= "Test"/><Buttontype= "button"ID= "Submit">Submit</Button></form><Scripttype= "Text/javascript">$(function(){    $('#submit'). Click (function(){        $('#form'). Submit ()})})</Script>

The above code does not seem to be a problem, but when you click on the Query button, you do not submit the form, the button type to submit the form is normal.

Additional Notes:forms and their child elements should isn't use input names or IDs that conflict with properties of a form , such as submit, length, or method. Name conflicts can cause confusing failures. For a complete list of rules and to check your markup for these problems, see domlint.

Other considerations: The form and its child elements should not use the property of a form property as name or ID , such as submit, length, or method, is , conflicts can arise. Name collisions can lead to confusing failures. For a complete list of rules, and check for these problem tags, see domlint.

And then I changed the ID name and I executed it.

jquery submit () does not execute

Related Article

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.