国产探花免费观看_亚洲丰满少妇自慰呻吟_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().
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 商丘市| 潼关县| 泗洪县| 无极县| 陆良县| 正蓝旗| 揭西县| 买车| 普格县| 阜阳市| 柳州市| 珠海市| 合作市| 青铜峡市| 宜兴市| 金川县| 吉首市| 厦门市| 额济纳旗| 楚雄市| 托克托县| 广东省| 山丹县| 浦北县| 若羌县| 花莲市| 西丰县| 马关县| 文水县| 龙泉市| 孟津县| 京山县| 北流市| 灌南县| 锡林浩特市| 台中市| 揭阳市| 鄄城县| 苏州市| 昌平区| 新河县|