明霞山资源网 Design By www.htccd.com
【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步:<"#">《信息表》</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控制页面的展开和隐藏实现方法(推荐)全部内容了,希望大家多多支持~
标签:
jquery控制显示隐藏
明霞山资源网 Design By www.htccd.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
明霞山资源网 Design By www.htccd.com
暂无评论...