-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path21-number.html
56 lines (53 loc) · 1.36 KB
/
21-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
<!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 siblings: 1.siblings,next,nextAll,nextUntil,prev,prevAll,prevUntil</h3></u><br>
<div class="siblings">
<div>div
<button>Click me</button>
<p>p</p>
<span>span</span>
<h2>h2</h2>
<h3>h3</h3>
<p>p</p>
<a href="#">link</a>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
// $("h2").siblings().css({
// $("h2").siblings("p").css({
// $("h2").next().css({
// $("h2").nextAll().css({
// $("h2").nextUntil("a").css({
// $("h2").prev().css({
// $("h2").prevAll().css({
$("h2").prevUntil("button").css({
"color" : "green",
"border" : "2px solid red"
});
});
</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>