-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (43 loc) · 1.03 KB
/
index.html
File metadata and controls
44 lines (43 loc) · 1.03 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Autocomplete - Default functionality</title>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
var Flowers = [
"Lily",
"Lotus",
"Tulip",
"Crocus",
"Hyacinth",
"Daisy",
"Dandelion",
"Orchid",
"Cherry blossom",
"Rose",
"Bluebell",
"Sunflower",
"Daffodil",
];
$( "#flower" ).autocomplete({
source: Flowers,
minLength:2,
delay:100
});
});
</script>
</head>
<body>
<div class="ui-widget">
<p>Type the first two letters</p>
<p>Favourite Flower:</p>
<label for="flower">Flower: </label>
<input id="flower">
</div>
</body>
</html>