1 Star 0 Fork 0

小猪佩奇陆战队 / Demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jquery4Demo.html 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
PeppaPig 提交于 2017-11-18 12:16 . Initial commit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style type="text/css">
div{
background-color: #e5eecc;
padding: 7px;
border: #c3c3c3;
}
</style>
<script src="jquery-3.2.1.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(".hide1").click(function () {
$(".ex1").hide("slow");
});
$(".hide2").click(function () {
$(".ex1").show("slow");
});
$(".hide3").click(function () {
$(".ex2").hide("slow");
});
$(".hide4").click(function () {
$(".ex2").show("slow");
});
$(".hide5").click(function () {
$(".ex3").hide("slow");
});
$(".hide6").click(function () {
$(".ex3").show("slow");
});
});
</script>
</head>
<body>
<h3>A 人员名单:</h3>
<button class="hide1" type="button">点击隐藏</button>
<button class="hide2" type="button">点击显示</button>
<div class="ex1" >
<p >
<tr>
姓名:
<input style="width: 15%">
</tr><br/>
<tr> 地址: <input style="width: 15%"></tr><br/>
<tr> 联系方式: <input></tr><br/>
</p>
</div>
<h3>B人员名单:</h3>
<button class="hide3" type="button">点击隐藏</button>
<button class="hide4" type="button">点击显示</button>
<div class="ex2">
<p>
<tr>
姓名:
<input style="width: 15%">
</tr><br/>
<tr> 地址: <input style="width: 15%"></tr><br/>
<tr> 联系方式: <input></tr><br/>
</p>
</div>
<h3>C人员名单</h3>
<button class="hide5" type="button">点击隐藏</button>
<button class="hide6" type="button">点击显示</button>
<div class="ex3">
<p>
<tr>
姓名:
<input style="width: 15%">
</tr><br/>
<tr> 地址: <input style="width: 15%"></tr><br/>
<tr> 联系方式: <input></tr><br/>
<p/>
</div>
</body>
</html>
HTML
1
https://gitee.com/man_plus/Demo.git
git@gitee.com:man_plus/Demo.git
man_plus
Demo
Demo
master

搜索帮助