The JSP page does not respond when you click the button, the method does not perform the check, and the jsp does not respond.

Source: Internet
Author: User

The JSP page does not respond when you click the button, the method does not perform the check, and the jsp does not respond.

The button on the JSP page does not respond and the method does not perform the check.

Not long ago, when debugging a page, click a button on the page and the event bound to the button is not executed. It's strange. I thought the method name was wrong. Check whether it's exactly the same. I am so depressed. I think the difference between onclick and onClick on the internet is poor. After some exploration, it turns out that the method name uses the Reserved Words in JSP .. There is also this restriction, which is truly drunk. Here, I will summarize the methods for checking such methods:

Whether the id element has duplicate function names cannot conflict with the reserved name. Whether to correctly reference the select element of the jquery file (especially the path name) and set disable to true cannot be passed to the background.

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.