-
Notifications
You must be signed in to change notification settings - Fork 0
/
ques12.html
58 lines (40 loc) · 857 Bytes
/
ques12.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
<html>
<head>
<title>Question 12</title>
<style>
html,body{height:100%;width:100%}
html, body {
height : 100%;
}
.panel {
width : 80%;
height : 80%;
background : blue;
}
div ul li {
background : red;
list-style:none;
display: inline;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<body>
<div class="panel">
<ul>
<li> list inside div</li>
<li> list inside div</li>
<li> list inside div</li>
</ul>
</div>
<script>
$(document).ready(function()
{
$('.panel').on('click', function () { alert('You clicked on the panel element.'); }).children().on('click', function (e) {
e.stopPropagation();
});
});
</script>
<a href="contents.html">Navigate to other questions</a>
</body>
</html>