时间:2021-10-15 08:20:56 | 栏目: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>