Sadie Project Management System login Error

Source: Internet
Author: User

When you log in to the project management system, the console prompts: uncaught typeerror document.getElementById ("LoginForm"). Submit is not a function

But checking the JS code is normal:

$ ("#loginForm"). Validate ({rules : {username : { required : true},password : {required : true,minlength : 3},code  : {required : true},},messages : {username : {required:  "Please enter your user name! "},password : {required : " Please enter the password! ",minlength : " Password minimum length is 3 bit! "},code : {required: " Please enter the verification code! "},},                 submithandler: function  (Form)  {             $ ("[Name=password]"). Val (MD5 ($ ("[Name=password]"). Val ()));                     document.getelementbyid (" LoginForm "). Submit ();                 }); 

Think of the solution, later access to the data only found that when using Form.submit () submit the form, the page submit the input cannot have name= "submit" attribute, otherwise at the time of submission, the object will and submit (), the method is confused caused the error!

This article is from the "Phoenixisland" blog, make sure to keep this source http://phoenix2012.blog.51cto.com/1799358/1677881

Sadie Project Management System login Error

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.