1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Lesson6</title>
<script src="jquery-3.1.1.min.js"></script>
</head>

<body>
<div>
<p> jQuery Lesson6 </p>
<p class = "more"> jQuery ç·´ç¿’6RRRRRRRRRRRRRRRRRR </p>
<a href = "#" class=" moreText "> More...........</a>
<a href = "#" class=" short "> Hide...........</a>
</div>

<script>
$(document).ready(function(e) {
$('p.more').hide();
$('a.short').hide();
$('a.moreText').click(function(e){
$('p.more').show();
$('a.short').show();
$(this).hide();
})
$('a.short').click(function(e)
{
$(this).hide();
$('p.more').hide();
$('a.moreText').show();
})
});

</script>
</body>
</html>