-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomWidgests.html
More file actions
75 lines (58 loc) · 1.95 KB
/
Copy pathCustomWidgests.html
File metadata and controls
75 lines (58 loc) · 1.95 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html>
<head>
<title>CUSTOM WIDGETS</title>
<link rel="stylesheet" href="jqueryui/jquery-ui.css">
<link rel="stylesheet" href="jqueryui/jquery-ui.structure.css">
<link rel="stylesheet" href="jqueryui/jquery-ui.theme.css">
</head>
<body>
<div id="div1">
<label for="">Add the date</label><br>
<input type="text" id="date">
<button id="btn1">Click Me</button>
</div>
<div id="div2">
<h3>javascript</h3>
<p>javascfript has many fucntionds</p>
<h3>java</h3>
<p>java supports oops fucntionds</p>
<h3>python</h3>
<p>python has many libarires</p>
</div>
<div id="div3">
<img src="message.png" id="img" alt="" height="200" width="200">
<button id="btn2">Click me</button>
</div>
</body>
<script
src="https://code.jquery.com/jquery-3.5.0.js"
integrity="sha256-r/AaFHrszJtwpe+tHyNi/XCfMxYpbsRg2Uqn0x3s2zc="
crossorigin="anonymous">
</script>
<script src="jqueryui/jquery-ui.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#btn1").click(function(){
$("#date").datepicker({
changeYear : true,
changeMonth : true,
})
})
$("#div2").accordion()
$("#btn1").click(function(){
$("#div3").dialog({
height : 200,
width :200
})
})
$("#btn1").click(function (){
//getter method
var height = $("div3").dialog("option",height)
alert(height)
//setter method
//use official doucmnteion of the jquery
$("#div3").dialog("option","height",600)
})
})
</script>
</html>