- !function ($) {
- //全选 全不选 反选
- $("#selAll").click(function () {
- $(".lists :checkbox").not(':disabled').prop("checked", true);
- });
- $("#unSelAll").click(function () {
- $(".lists :checkbox").not(':disabled').prop("checked", false);
- });
- $("#reverSel").click(function () {
- //遍历.lists下的 checkbox;
- $(".lists :checkbox").not(':disabled').each(function () {
- $(this).prop("checked", !$(this).prop("checked"));
- });
- });
- }(jQuery)