国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Jquery單擊選擇權限實例

2019-11-08 02:10:27
字體:
來源:轉載
供稿:網友

HTML代碼:

            <table class="table table-bordered table-striped with-check">              <thead>                <tr>                  <th></th>                  <th >一級權限</th>                  <th ></th>                </tr>              </thead>              <tbody>               <tr >                <td style="text-align:center"></td>                 <td style="text-align:center"><label><input type="checkbox" class="authcheck"></label></td>		<td ><input type="checkbox" class="authcheck1">{$vv.auth_name}</td>              </tr>              </tbody>            </table>jQuery代碼:

       $('.authcheck').click(function(){            if ($(this).is(":checked")) {                $(this).parent().parent().next().children('input').attr("checked",true)            }else{                $(this).parent().parent().next().children('input').attr("checked", false)            }        })        var i=0;        $('.authcheck1').click(function(){           //alert( $(this).parent().children('input').CSS('background','red'));           $(this).parent().children('input').each(function (index, domEle) {            if($(this).attr("checked")!='checked'){                i=1;            }           });            if(i==0){            $(this).parent().
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 巨野县| 高要市| 泗洪县| 泸定县| 邹城市| 凤阳县| 龙岩市| 平陆县| 唐河县| 新民市| 延庆县| 来宾市| 齐齐哈尔市| 高雄市| 甘谷县| 阳原县| 巴东县| 仁寿县| 来安县| 抚宁县| 普兰店市| 从化市| 茌平县| 商城县| 金溪县| 绥江县| 慈溪市| 阳谷县| 三明市| 晋江市| 璧山县| 莱西市| 竹山县| 宣汉县| 长葛市| 新民市| 南阳市| 乌拉特前旗| 永泰县| 龙南县| 南华县|