jQuery表单全选插件 baigoCheckall

码农软件 · 软件分类 · jQuery表单及相关 · 2019-12-23 05:58:51

软件介绍

baigoCheckall 表单全选插件是基于 jQuery 的表单全选插件。

使用方法:


  1. 载入 jQuery 库文件,例:

    <script src="jquery.js" type="text/javascript"></script>

    jQuery 库文件请到 http://www.jquery.com 下载

  2. 载入 baigoCheckall 核心文件,例:

    <script src="baigoCheckall.js" type="text/javascript"></script>


  3. 初始化插件,例:

    <script type="text/javascript">	$(document).ready(function(){
    	    $("#form_demo").baigoCheckall();
    	});</script>


  4. 在需要操作的 checkbox 中定义 id 和 class
    其中,id 代表选框本身,class 代表父元素的 id,例:

    <input type="checkbox" id="first" class="none" />
    	<input type="checkbox" id="second_1" class="first" />
    	<input type="checkbox" id="second_2" class="first" />
    	<input type="checkbox" id="second_3" class="first" />
    	<input type="checkbox" id="second_4" class="first" />

    当用户选中 id 为 first 的选框的时候,class 为 first 的选框将全部被选中,反之则为未选中;
    当任意一个 class 为 first 的选框未被选中时,id 为 first 的选框也会处于未被选中状态。


本文地址:https://codercto.com/soft/d/21748.html

互联网的基因

互联网的基因

人民邮电出版社 / 2016-9-21 / 48.00元

《互联网的基因》是一本从电信看互联网创新,从互联网看电信创新的力作。作者何宝宏博士长期在电信行业从事互联网领域研究,是极为少有的“既懂IP又懂电信”的专家。该书借以电信和互联网技术创新的大脉络,用轻松、诙谐、幽默的语言,结合经济学、社会学、哲学、人类学甚至心理学理论,揭示互联网、云计算、大数据以及目前最热门的区块链等技术发展背后的规律。作者在该书中明确表示,互联网是新的技术物种,互联网有基因,互联......一起来看看 《互联网的基因》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换