Skip to content

Commit 24aa907

Browse files
committed
jQuery Method Chaining css() | slideUp() | slideDown()
1 parent 8432d50 commit 24aa907

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
6+
<script>
7+
$(document).ready(function () {
8+
$("button").click(function () {
9+
$("#p1").css("color", "blue")
10+
.slideUp(2000)
11+
.slideDown(2000);
12+
});
13+
});
14+
</script>
15+
</head>
16+
17+
<body>
18+
19+
<p id="p1">jQuery is fun!!</p>
20+
21+
<button>Click me</button>
22+
23+
</body>
24+
25+
</html>

0 commit comments

Comments
 (0)