Javascript-click the close button twice to close the event.

Source: Internet
Author: User
{Code ...}
《script》        $(document).ready(function(){            $(".checkboxFour").addClass("click");         var evTimeStamp = 0;        $(".click").click(function(event){    if($(this).find("input").is(":checked")==true){            $(this).find("input").attr("disabled",true);            return ;          }         var now = +new Date();         if (now - evTimeStamp < 100) {          return;         }         evTimeStamp = now;        var obj = ""                +$(this).text()+                "X";                $("#case_s_choice").append(obj);                event.stopPropagation();            });            $(".tchkb-0").click(function(e){                e.stopPropagation();             });            $(document).on("click",".close",function(){                $(this).parents("span").remove();        var text = $(this).siblings("span").text();                $(".checkboxFour").each(function(){                    if($(this).text() == text){                    $(this).find("input").attr("disabled",false);                        $(this).find("input").click();                                            }                });            });        });            《script》';

Reply content:
《script》        $(document).ready(function(){            $(".checkboxFour").addClass("click");         var evTimeStamp = 0;        $(".click").click(function(event){    if($(this).find("input").is(":checked")==true){            $(this).find("input").attr("disabled",true);            return ;          }         var now = +new Date();         if (now - evTimeStamp < 100) {          return;         }         evTimeStamp = now;        var obj = ""                +$(this).text()+                "X";                $("#case_s_choice").append(obj);                event.stopPropagation();            });            $(".tchkb-0").click(function(e){                e.stopPropagation();             });            $(document).on("click",".close",function(){                $(this).parents("span").remove();        var text = $(this).siblings("span").text();                $(".checkboxFour").each(function(){                    if($(this).text() == text){                    $(this).find("input").attr("disabled",false);                        $(this).find("input").click();                                            }                });            });        });            《script》';

I have also met before. I tried firefox and chrome twice, and others would be okay, not the reason for the mouse.

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.