返回全选代码案例...登陆

全选代码案例

ryan2019-04-14 16:19:56239

  //全选,取消全选

            $(document).on("click","#selection",function(){

                if($(this).hasClass("selected")==false){

                    $(this).closest(".tablesWrap").find("input[type=checkbox]").prop("checked",true);

                    $(this).addClass("selected");

                }else{

                    $(this).closest(".tablesWrap").find("input[type=checkbox]").prop("checked",false);

                    $(this).removeClass("selected");

                }

            });


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送