-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvents.html
More file actions
47 lines (39 loc) · 1.16 KB
/
Copy pathEvents.html
File metadata and controls
47 lines (39 loc) · 1.16 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
<html>
<head>
<title>Events</title>
<h1>EVENTS</h1>
</head>
<body>
<div id="first" class="c1">
<p>this is first paragraph in first dev</p><br><br>
<p>this is second paragraph in first dev</p>
</div>
<div id="second" class="c1">
<p>this is first paragraph in second dev</p><br><br>
<p>this is second paragraph in second dev</p>
</div>
<div id="third" ><br><br>
<ul>
<li>java</li>
<li>python</li>
<li>c</li>
<li>javascript</li>
</ul>
<br><br>
</div>
<button >click me</button>
</body>
<script
src="https://code.jquery.com/jquery-3.5.0.js"
integrity="sha256-r/AaFHrszJtwpe+tHyNi/XCfMxYpbsRg2Uqn0x3s2zc="
crossorigin="anonymous">
</script>
<script>
$("button").click(func1)
function func1()
{
$(".c1").fadeToggle(100)
$("li:even").fadeToggle(100)
}
</script>
</html>