-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo2.html
More file actions
49 lines (35 loc) · 2.52 KB
/
demo2.html
File metadata and controls
49 lines (35 loc) · 2.52 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
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>demo</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<button onclick="abc()">Click</button>
<p id="nu"></p>
<script>
function abc(){
var day = 'Sunday';
switch(day) {
case 'Sunday' : document.getElementById('nu').innerHTML = 'Today is Sunday';
break;
case 'Monday' : document.getElementById('nu').innerHTML = 'Today is Monday';
break;
default : document.getElementById('nu').innerHTML = 'Today is Holiday';
}
}
</script>
<a href="javascript:void(0);" onclick="$('.extra').slideToggle('slow'); if($(this).html() == 'Read More'){$(this).html('Read Less')}else{$(this).html('Read More')}">Read More</a>
<p class="extra">
The break statements indicate the end of a particular case. If they were omitted, the interpreter would continue executing each statement in each of the following cases.
We will explain break statement in Loop Control chapter.The break statements indicate the end of a particular case. If they were omitted, the interpreter would continue executing each statement in each of the following cases.
We will explain break statement in Loop Control chapter.The break statements indicate the end of a particular case. If they were omitted, the interpreter would continue executing each statement in each of the following cases.
We will explain break statement in Loop Control chapter.The break statements indicate the end of a particular case. If they were omitted, the interpreter would continue executing each statement in each of the following cases.
We will explain break statement in Loop Control chapter.The break statements indicate the end of a particular case. If they were omitted, the interpreter would continue executing each statement in each of the following cases.
We will explain break statement in Loop Control chapter.The break statements indicate the end of a particular case. If they were omitted, the interpreter would continue executing each statement in each of the following cases.
We will explain break statement in Loop Control chapter.The break statements indicate the end of a particular case. If they were omitted, the interpreter would continue executing each statement in each of the following cases.
We will explain break statement in Loop Control chapter.
</p>
</body>
</html>