-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript_jquery_ui.html
More file actions
38 lines (38 loc) · 1.36 KB
/
javascript_jquery_ui.html
File metadata and controls
38 lines (38 loc) · 1.36 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
<html>
<head>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
</head>
<body>
<input type="text" name="datePicker" id="datePicker" placeholder="select date" />
<p id="pToolTip" style="background: lightgrey; padding: 20px;" title="title">tooltip</p>
<p id="pDialog" style="background: lightgrey; padding: 20px;" title="title">dialog</p>
<input type="text" name="autoComplete" id="autoComplete" placeholder="auto complete" />
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#datePicker").datepicker({
numberOfMonths: 2
,changeYear: true
,changeMonth: true
,minDate: new Date(2010,0,1)
});
$("#pToolTip").tooltip({
track: false
,content: "content!"
,show: {effect: "highlight", duration: 3000}
});
$("#pDialog").dialog({
title: "title!"
,draggable: true
,resizable: true
,height: 300
,width: 200
,modal: true
,buttons: [{text: "butt1", icon: "ui-icon-heart"}, {text: "butt2", icon: "ui-icon-home"}]
});
$("#autoComplete").autocomplete({source: ["abc", "abc1", "abc2", "abc3"]}, {autoFocus: true, delay: 100, minLength: 2});
});
</script>
</html>