HTML page element event is missing

Source: Internet
Author: User

Previous time to do the site, including the recent use of MVC OA have found this strange phenomenon, is the page after loading the page element events (such as button click, check box change) all normal, but when the query or other operations after the page event is lost. There is no time to analyze the specific reasons, now record the solution

/* Select All */ $ (function  () {if ($ ("#ckb_all"). Prop ("checked")) {$ (true );} Else {$ ("input[name= ' ckb_list ')"). Removeattr ("checked");} $ (true)});

List is the div ID that Chk_all is in, using the. On () method (JQuery1.9 and later versions remove live)

HTML page element event is missing

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.