jquery控制页面的展开和隐藏实现方法(推荐)
网络编程 2021-07-04 20:01www.168986.cn编程入门
狼蚁网站SEO优化长沙网络推广就为大家带来一篇jquery控制页面的展开和隐藏实现方法(推荐)。长沙网络推广觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随长沙网络推广过来看看吧
【jquery代码】
<script> require(["jquery","validate","bootstrap","lhgcalendar"],function($) { $(function(){ $("form").validate(); }); $(".up").click(function(){ $(this).parent().parent().parent().parent().next().slideToggle("slow"); }); }); </script>
【HTML代码】
<div class="panel panel-default"> <table class="table table-bordered"> <thead> <tr class=" active" id="a3"> <th width="15%" style="text-align:center;">加盟状态</th> <th width="25%" style="text-align:center;">申请表名称</th> <th width="25%" style="text-align:center;">审核情况</th> <th width="25%" style="text-align:center;">操作</th> <th width="10%" style="text-align:center;">隐藏/展开切换</th> </tr> </thead> <tbod> <tr style="text-align:center;" class=" active"> <td><strong class="text-warning">第1步:<? echo $stage->name;?></strong></td> <td><a href="#">《信息表》</a></td> <td>-</td> <td>-</td> <td> <span class="up text-info" ><i class="glyphicon glyphicon-chevron-down"style="padding:0px 5px 0 5px;"></i></span> </td> </tr> </tbody> </table> <div class="panel-body" style="display:none;"> <table class="table"> <tbody> <tr> <td>-</td> <td>-</td><pre name="code" class="html"> <td>-</td> </tr> </tbody> </table> </div> </div>
以上就是长沙网络推广为大家带来的jquery控制页面的展开和隐藏实现方法(推荐)全部内容了,希望大家多多支持狼蚁SEO~
上一篇:js控制li的隐藏和显示实例代码
下一篇:JS常用函数和常用技巧小结
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程