-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvents.html
More file actions
39 lines (35 loc) · 1.01 KB
/
Copy pathEvents.html
File metadata and controls
39 lines (35 loc) · 1.01 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
<html>
<head>
<titl>Selectors</titl>
<link rel="stylesheet" href="CSS/events.css">
</head>
<body>
<p id="pf"><b>This is the first paragraph </b></p>
<br>
<div id="div1" class="mydiv">
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
</div>
<div id="div2" class="mydiv">
<ul>
<li>List Item 4</li>
<li>List Item 5</li>
<li>List Item 6</li>
</ul>
</div>
<br>
<p id="pl">This is the last paragraph</p><br>
<button id="btn">Click Here</button>
</body>
<script src="JS/jquery.js"></script>
<script>
$("button").click(function op(){
$("#pf:first").fadeToggle(1000);
$("#pl:last").fadeToggle(1000);
$("ul:first, li:last").fadeToggle(5000);
});
</script>
</html>