/
html.html
39 lines (35 loc) · 834 Bytes
/
html.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery UI Autocomplete Extension - HTML Option</title>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/base/jquery-ui.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.js"></script>
<script src="jquery.ui.autocomplete.html.js"></script>
<script>
$(function() {
$( "#autocomplete" ).autocomplete({
source: [
{
label: "aardvark",
value: "aardvark"
},
{
label: "<b>apple</b>",
value: "apple"
},
{
label: "<i>atom</i>",
value: "atom"
}
],
html: true
});
});
</script>
</head>
<body>
<input id="autocomplete">
</body>
</html>