-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheffects.html
More file actions
61 lines (50 loc) · 1.64 KB
/
Copy patheffects.html
File metadata and controls
61 lines (50 loc) · 1.64 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html>
<head><h4><i><b>Effects in Jquery</b></i></h4>
<title>Effects in Jquery</title>
<link rel="stylesheet" href="CSS/pratice.css">
</head>
<body>
<button id="btn1" > Click Button 1</button>
<button id="btn2" > Click Button 2</button>
<button id="btn3" > Click Button 3</button>
<br>
<div id="div1">
<p>This is the first paragraph</p>
</div>
<div id="div2">
<p> This is the second paragraph</p>
<p> This is the third paragraph</p>
</div>
<div id="div3">
<ul>
<li>Item List 1</li>
<li>Item List 2</li>
<li>Item List 3</li>
</ul>
</div>
<div>
<ul>
<li>Item List 1</li>
<li>Item List 2</li>
<li>Item List 3</li>
</ul>
</div>
</body>
<script src="JS/jquery.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$("#btn1").click(function(){
// $("#div1, #div3").hide();
$("#div1, #div3").slideUp();
});
$("#btn2").click(function (){
//$("#div1, #div3").show();
$("#div1, #div3").slideDown();
});
$("#btn3").click(function (){
// $("#div1, #div3").toggle();
$("#div1, #div3").slideToggle();
});
});
</script>
</html>