摘要: HTML: <button class="addHidden">点击</button> <div class="addShow" style="display:none">隐藏内容</div> JS: $(".addHidden").click(function () { if ($(".addSh 阅读全文
posted @ 2016-05-10 15:40 SKILL·NULL 阅读(750) 评论(0) 推荐(0) 编辑
摘要: HTML: <input type="checkbox" class="all"> <input type="checkbox" name="some"> JS: $(".all").click( function () { if (this.checked) { $("input[name='so 阅读全文
posted @ 2016-05-10 13:53 SKILL·NULL 阅读(185) 评论(0) 推荐(0) 编辑