-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path15-number.html
62 lines (54 loc) · 1.62 KB
/
15-number.html
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
62
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery practice</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/jquery-3.6.0.min.js"></script>
</head>
<body>
<section class="content">
<div class="header">
<h2><button class="indexManin"><a href="index.html" class="home">Home</a></button>
Tutorial: jQuery Fundamentals</h2>
</div>
<div class="maincontent">
<u><h3 align="center">jQuery Remove: 1.remove</h3></u><br>
<div class="removeFun" id="removeFun1">
<h2>Hello!</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.</p>
</div><br>
<button class="btn" id="btn1">Remove Text</button>
<script type="text/javascript">
$(document).ready(function(){
$("#btn1").click(function(){
$("#removeFun1").remove();
});
});
</script><br><br>
<u><h3 align="center">jQuery Remove: 2.empty</h3></u><br>
<div class="removeFun" id="removeFun2">
<h2>Hello!</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.</p>
</div><br>
<button class="btn" id="btn2">Empty Text</button>
<script type="text/javascript">
$(document).ready(function(){
$("#btn2").click(function(){
$("#removeFun2").empty();
});
});
</script>
</div>
<div class="footer">
<h2>
<script type="text/javascript">
var year = new Date();
document.write(year.getFullYear());
</script> © Tarequr Rahman Sabbir</h2>
</div>
</section>
</body>
</html>