如果取消选中任何1复选框,如何取消选中全选复选框 [英] How to deselect the select all check box when any 1 check box is unchecked

查看:137
本文介绍了如果取消选中任何1复选框,如何取消选中全选复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我选中顶部的检查复选框时,整个复选框被选中,但我需要的是当我在多个记录中自动取消选中任意一行时,检查器即(全部选择)应该取消选中。 ....





这是我在plnkr中的完整编码:http://plnkr.co/edit/ Yg2AQfx6E0wg1lxwomA6?p =预览

When i select the checker check box at the top the entire check box gets selected but what i need is when i uncheck any 1 row in a mutiple record automatically the checker i.e, (select all) should be uncheck .....


Here is my entire coding in plnkr:http://plnkr.co/edit/Yg2AQfx6E0wg1lxwomA6?p=preview

推荐答案

这是一个链接就是这样 - http://christesene.com/angular-js-directive-to-allow- a-select-all-checkbox-also-provide-all-checked-and-none-checked-if-needed / [ ^ ]。



另一个 - 使用AngularJS检查/取消选中带有一个主复选框的子复选框 [ ^ ]。
Here is a link that does just this - http://christesene.com/angular-js-directive-to-allow-a-select-all-checkbox-also-provide-all-checked-and-none-checked-if-needed/[^].

Another one - Check / Uncheck sub checkboxes with one main checkbox using AngularJS[^].


这篇关于如果取消选中任何1复选框,如何取消选中全选复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆