本文是对jquery的Treeview插件使用的实例介绍

  效果图如下:

  

  文件结构如下:

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAABRCAIAAACsfN9kAAAL+0lEQVR4nO2dX2wUxx3H97FPrZT3PlVGVFUqVeJlW6kPhbSiNG5LWlrCn5DSSYMSAiFp0lSlOQhqDC2rqBKqqlhYxMV1ajA2a2JsE3zGBv/BmD8+7MU257/YxlzAPt/5ztzeXR/238zszN7u4T939u8jhPd2d2Znd3/fmd9vbmZOUAEAcIGw3AUAgPwApAIArgCpAIArQCoA4AqQCgC4AqQCAK7wIJV4qDI6IUXGjoeHjs4Ei2buH33S/7fH9z4K9fqm7h58dO/v4cnGxSsoACwv7qWSiE4cT8xVJxMPI1P//mrw44EbHzyNXko+vaL9m498MXn340UsKQAsKx5alejE8USsJhGrSafVdFodur7n7rUP5x5XqvONiVjD00jt2I0Di1dQAFhespFKIlaTTqfvt/3+tv9PD+4cehqpnQ9Xx56cGencz06pSKIgSsrClDgnWHl3BGTCi1TGcamofS2v3Lr87ujNg7EnZ6Kh07MPTw53vMVOufIMa+XdEZAJD1KZfXBM08l8tCqVjPT6X+669NZw53uzD0+GH/xreuSTwfY3Fq+g2aJIooDk5S4FkP94kEp4tEjTSWzmf+rTycCXW27UvT7Uvn965JPHwaOhvsMjnfumBk4vXlmzAqQCLAwepDI9dETTSSRUOjdz7U795utfvBq8tifUd3iq98+T3e+M39o7cBUxUhLmKiMBQ/Ni8BM4JxvujnZYRoIgiAjhbpCMbD4Rdi1RUoi02pn2/O07CWdL/+BYSKwgMhKM8xjFA/IJD1J5HDyk6WR64tPQ8D9v1Ra2n982cGW3JpKxG6+FQqH+5t2MlJZhYaajfXCSCm5c5l5FEgUrD9IqWa0HnTV5fXv+rJ3WPmOPYyHxg6Io2vQD5CUepBLqP2jqZLL/aFfNT9vO/aqvcfvYjddGO3YNt24LhUJ9V37HSMm0Q/wjUypk84PX8ZgkzCw4SuE3WOz82Rc1rkIIll9IS2KipM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x5alas/D6nuwTdDDOxvoKaqrXiqlpaXhcLh727eDWwuublh7fO+md//ym2+sfz8+fmj25vqZcLi0lBHWKxKSZOtlmrW+vp9qSYhtvLLCjQTJjHrfaKW06cMy0voRkKwqEjLshXJl7M4NGehadqtv0XEwP442DjuKk2go7NW+Vn5GWE85YNjF9QdABX3M7PlTZZiLAfCW5WBur3qplJSURCPR+l+K3RsLgtsLyrau++H3X2ouej5y5bnOD78XiURKSkrsqWRJUsjInJh/y3pbvL5l/hn6Z/1a5sslq13c8k1l4WZIh0Gs+p9lBc/cquBNKmZssiQprB4wbhun27MiiQJCiLgSLRVFEpFkVCK2koNUaLxJpbi4OB6fv/yfk1XrvhPYVBDcVjD6RsHEewXKm2uay0/Oz88XFxezU5q2Sj1K0gHjQtSEgiAIRqxDX0DF8qQbHlGSaEedlArxfikR48bposvacmHw3ikzkCAyImt3q9R0R5aM7L4T6V4hySwZ3WRo94Z5p7YeFs6yASAVHW9SOXHihKqqExOT9VXnT77021MbfnTqxfX//fXPL5adnpycMk9goHsStufnoVXB/GOVGXjbHfSMubJ6l4yL0UrET6AvYesBk0grpYto7hfFzN1KGb5XsboxDGPWno3WHY8HFIJgeHNM884gFbzPDqSSCUmSkslkPB6fnpm5fae7ta29ta2j6+at0FehWCyWTCYlSWKnZPfpmvWi1x4nrgOmb/LiCfb3dE7XIvrd3EMGVoyiWCEI/96pjm1muem2jojq9czxByUj+1rnnrqBVy3epFJUVJR0pKioaJEKCgDLi+evID9yhPsVJADkOTC1CwBcAVIBAFeAVADAFSAVAHAFSAUAXAFSAQBXgFQAwBUgFQBwBUgFAFwBUgEAV4BUAMAVIBUAcAVIBQBcAVIBAFeAVADAFSAVAHDF/wEexqpEaAU/HQAAAABJRU5ErkJggg==" alt="" />

  jquery_treeview下的目录:

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQsAAABRCAIAAABKVRQgAAAJCklEQVR4nO2c21Mb1x3H9w/IQ1460z4VCex0ppeZup3ObJtO6oR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FX3v3xcGrF+N53/Tduwb5oKfysOUsyxJTQZJwh+jgMNaoYbo/INjaZphQtMw3FVsQ5R7VmxU7J90PcfSNB1eb0K5lmRg0kA9y3IK1SdQjyLFiOOuk19dLNV8XJCVd3Zq6W6ZzZF56vPtbL6+19Jf8MPuI482/u1RruFTeYz0f1m6R2VllU0oKmYBh1hzfa1L+YZaEi3NfiKGFLURVt4dS5wVor1T7kSy3Y5WVxoY3szLOkI9ipQiDkPerKrVfsA+UXBOEAT79GzWx59+1txS9dEvrh5+5PKrj+jf37FyzyuPifU6mKCaDCjtAJJNcu9cjPkxdEKmNtIQkHySa0jMROGhDZHW/gUgeeDudwBIwBAASMAQAEjAEABIwBAASKxviC4eKArKgbRClSHBSGRWhNqNRiMMAWlG3IbodLpgkAoGg+K/ohUwBKQr8Rkifq/TUeKXqISYXCkbkk5nux/+uaTTX+NrQxyGSFQJ+6DT6ULLCAxJeg9gw4nbkNACIiXFsizcsAUSRryGKO9AYAhIVx5gH0LJ9iEkQ1DJQX5wEOUathhJfi8LlRwU6zZgkds6xL2GhD4ZFJcRqSQkQ1DJQZC/XuAY+pYg7p267B3eYJBKiiFpWclB4RnAk1RHrSFrnlCiHqFE64GyrK9rJQfJcoRyDVuF+NYQo9FoNBrFBUT8nlK/U0clB0kPKNewVYhvH0JFsc67vajkIAULxhZElSFG1cgMQSUHKfhIfSuyviHR6waZyFhUchAEIZRUbZnxghCp8BE4AKkLDAGABAwBgAQMAYAEDAGABAwBgAQMAYAEDAGABAwBgAQMAYAEDAGABAwBgAQMAYDE/wHfiUcju8eAiwAAAABJRU5ErkJggg==" alt="" />

  树型结构显示+复选框级联.html的内容:

  

 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配置权限</title>
<script language="javascript" src="jquery-1.4.4.min.js"></script>
<script language="javascript" src="jquery_treeview/jquery.treeview.js"></script>
<link type="text/css" rel="stylesheet" href="jquery_treeview/jquery.treeview.css" /> <style>
span.folder{
background-image: url("jquery_treeview/images/folder.gif");
background-repeat: no-repeat;
font-size: 14px;
padding-left: 20px;
height: 17px;
} /*ul li{
list-style: none;
}*/
</style> <script type="text/javascript"> $(function(){ $("[name=chkbox]").click(function(){ //当选中或取消一个权限时,也同时选中或取消所有的下级权限
$(this).siblings("ul").find("input").attr("checked",this.checked); //当选中一个权限时,也要选中所有的直接上级权限
if(this.checked ==true){
$(this).parents("li").children("input").attr("checked",true);
} //当某一个父权限下的子权限都不选中时,该父权限也不选中
var elements=$(this).parent("li").parent("ul").find("input");
var num=elements.length;
/*alert(num);*/
var a=0;
for(var i=0;i<num;i++){
if(elements[i].checked==false){
a++;
}
}
if(a==num){
$(this).parent("li").parent("ul").siblings("input").attr("checked",false);
} });
});
</script>
</head>
<body> <!-- 标题显示 -->
<div id="Title_bar">
<div id="Title_bar_Head">
<div id="Title_Head"></div>
<div id="Title"><!--页面标题-->
<input type="checkbox" id="chkAll" onclick="$('[name=chkbox]').attr('checked',this.checked)">
<label for="chkAll">全选</label>
配置权限
</div>
<div id="Title_End"></div>
</div>
</div> <!--显示表单内容-->
<div id=MainArea> <ul id="tree">
<li>
<input type="checkbox" id="cb0" name="chkbox">
<label for="cb0"><span class="folder">系统管理</span></label>
<ul>
<li>
<input type="checkbox" id="cb1" name="chkbox">
<label for="cb1"><span class="folder">用户管理</span></label>
<ul>
<li><input type="checkbox" id="cb11" name="chkbox">
<label for="cb11"><span class="folder">用户列表</span></label></li>
<li><input type="checkbox" id="cb12" name="chkbox">
<label for="cb12"><span class="folder">新增用户</span></label></li>
<li><input type="checkbox" id="cb13" name="chkbox">
<label for="cb13"><span class="folder">修改用户</span></label></li>
<li><input type="checkbox" id="cb14" name="chkbox">
<label for="cb14"><span class="folder">删除用户</span></label></li>
</ul>
</li>
<li>
<input type="checkbox" id="cb2" name="chkbox">
<label for="cb2"><span class="folder">部门管理</span></label>
<ul>
<li><input type="checkbox" id="cb21" name="chkbox">
<label for="cb21"><span class="folder">部门列表</span></label></li>
<li><input type="checkbox" id="cb22" name="chkbox">
<label for="cb22"><span class="folder">新增部门</span></label></li>
<li><input type="checkbox" id="cb23" name="chkbox">
<label for="cb23"><span class="folder">修改部门</span></label></li>
<li><input type="checkbox" id="cb24" name="chkbox">
<label for="cb24"><span class="folder">删除部门</span></label></li>
</ul>
</li>
<li>
<input type="checkbox" id="cb3" name="chkbox">
<label for="cb3"><span class="folder">岗位管理</span></label>
<ul>
<li><input type="checkbox" id="cb31" name="chkbox">
<label for="cb31"><span class="folder">岗位列表</span></label></li>
<li><input type="checkbox" id="cb32" name="chkbox">
<label for="cb32"><span class="folder">新增岗位</span></label></li>
<li><input type="checkbox" id="cb33" name="chkbox">
<label for="cb33"><span class="folder">修改岗位</span></label></li>
<li><input type="checkbox" id="cb34" name="chkbox">
<label for="cb34"><span class="folder">删除岗位</span></label></li>
</ul>
</li>
<li>
<input type="checkbox" id="cb4" name="chkbox">
<label for="cb4"><span class="folder">审批流转</span></label>
<ul>
<li><input type="checkbox" id="cb41" name="chkbox">
<label for="cb41"><span class="folder">审批</span></label></li>
</ul>
</li>
</ul>
</li> </ul> </div> <script language="javascript">
$("#tree").treeview();
</script> <div class="Description">
说明:<br />
1,选中一个权限时:<br />
&nbsp;&nbsp;&nbsp;&nbsp; a,应该选中他的所有直系上级。<br />
&nbsp;&nbsp;&nbsp;&nbsp; b,应该选中他的所有直系下级。<br />
2,取消选择一个权限时:<br />
&nbsp;&nbsp;&nbsp;&nbsp; a,应该取消选择他的所有直系下级。<br />
&nbsp;&nbsp;&nbsp;&nbsp; b,如果同级的权限都是未选择状态,就应该取消选中他的直接上级,并向上做这个操作。<br /> 3,全选/取消全选。<br />
4,默认选中当前岗位已有的权限。<br />
</div> </body>
</html>

jquery Treeview插件的使用及复选框的级联的更多相关文章

  1. 雷林鹏分享:jQuery EasyUI 树形菜单 - 创建带复选框的树形菜单

    jQuery EasyUI 树形菜单 - 创建带复选框的树形菜单 easyui 的树(Tree)插件允许您创建一个复选框树.如果您点击一个节点的复选框,这个点击的节点信息将向上和向下继承.例如:点击 ...

  2. 【三石jQuery视频教程】02.创建 FontAwesome 复选框和单选框

    视频地址:http://v.qq.com/page/m/8/c/m0150izlt8c.html 大家好,欢迎来到[三石jQuery视频教程],我是您的老朋友 - 三生石上. 今天,我们要通过基本的H ...

  3. jquery特效(6)—判断复选框是否选中进行答题提示

    前面有一段时间思想开了小差,跟着师父学习了一段时间才发现差距很大,看来我要奋起直追~\(≧▽≦)/~啦啦啦. 最近公司在做一个项目,需要根据用户选择的选项给出相应的提示,下面来看我写的测试程序的效果: ...

  4. jQuery学习(五)——使用JQ完成复选框的全选和全不选

    1.在系统后台进行人员管理时,进行批量删除,使用jq完成全选和全不选 步骤分析: 第一步:引入jquery文件 第二步:书写页面加载函数 第三步:为上面的复选框绑定单击事件 第四步:将下面所有的复选框 ...

  5. Jquery获取当前页面中的复选框选中的内容

    在使用$.post提交数据时,有一个数据是复选框获取数据,所以在当前页面获取到复选框选中的值并提交到后端卡住了一下,解决方法如下: 这两个input就是复选框的内容: str += "< ...

  6. jquery获取当前被选择的复选框的value的集合

    1.HTML代码 <input type="checkbox" name="productID" value="0"> < ...

  7. jquery操作radio单选按钮、checked复选框。

    一.radio 取值: $('input[name=radio]:checked').val(); 二.checked 判断checked是否被选中 $("input[type='check ...

  8. bootstrap-treeview 树形菜单带复选框以及级联选择

    <div id="searchTree"></div> <script> var treeData = [{ text: "Paren ...

  9. jquery怎样获取多个复选框的值?

    jquery的遍历方法可以获取复选框所欲的选中值 1 2 $("input:checkbox:checked").each(function(index,element));    ...

随机推荐

  1. 大圣画廊v0.2(2015.7.17)

    0.2版本号加入的功能 以tag分类图片 美化.添加瀑布流效果 添加tag页和单张图片页 添加公布图片页 以下是具体解释. 每添加一个功能,都要从模型.模板,视图,路由四个方面一一改动. 模型:添加t ...

  2. SQLServer------数据类型在C#中的转换

    SQL C#tinyint bytesmallint Int16char stringint int

  3. Mac 安装Bower

    1.安装bower,得首先安装node: 1 brew install npm  //npm是nodejs的程序包管理器,如果安装过nodejs,可忽略此步. 2.安装Git(因为需要从Git仓库获取 ...

  4. iOS 开发之 -- UDID和UUID的详解

    老实说,搞了几年的ios开发了,对基础的概念,还是不牢固,整天都是为了赶进度而码代码,这里记录一下这两者的区别: UDID的全名为 Unique Device Identifier :设备唯一标识符. ...

  5. 将UIView转成UIImage,将UIImage转成PNG/JPG

    分类: UIImageView2013-03-12 17:37 350人阅读 评论(0) 收藏 举报 //UIView -> UIImage #import “QuartzCore/Quartz ...

  6. jquery将具有相同名称的元素的值提取出来放到一个数组内

    jquery将具有相同名称的元素的值提取出来放到一个数组内 var arrInputValues = new Array();  $("input[name='xxx']").ea ...

  7. Android ListView的监听事件

    Android开发时,最常用的控件之一就是ListView了,而使用ListView的同时,必然需要对它设置监听器,常用的监听器有这么几个1.OnItemClickListener 2.OnTouch ...

  8. Sonnet-十四行诗

    <Wish> Of our best wishes we could desire increase, That thereby rose's aroma might never die, ...

  9. Oracle Schema Objects——Tables——TableStorage

    Oracle Schema Objects Table Storage Oracle数据库如何保存表数据? Oracle Database uses a data segment in a table ...

  10. 剑指Offer——按之字形顺序打印二叉树

    题目描述: 请实现一个函数按照之字形打印二叉树,即第一行按照从左到右的顺序打印,第二层按照从右至左的顺序打印,第三行按照从左到右的顺序打印,其他行以此类推. 分析: 我们都知道二叉树的层次遍历用的是队 ...