$(function () {
            var allBox = $(":checkbox");
            allBox.click(function () {
               if(this.checked){
                   allBox.removeAttr("checked");
                   $(this).attr("checked", "checked");
                 }
            });
        });

posted on 2016-01-21 10:05  仔仔爱学习  阅读(617)  评论(0编辑  收藏  举报