forked from dellsala/Combo-Box-jQuery-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.html
67 lines (58 loc) · 1.86 KB
/
example.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
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>jQuery Combobox Plugin Demo</title>
<link rel="stylesheet" type="text/css" href="./jquery/css/jquery.combobox/style.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="./jquery/js/jquery.combobox.js"></script>
<script type="text/javascript">
jQuery(function () {
jQuery('#input1').combobox([
'Foo',
'Bar',
'Bartender',
'Hello',
'Master',
'Monster',
'Monorail',
'Octopus has eight legs',
'Octagon',
'Often',
'World',
'wacko',
'woo'
]);
jQuery('#input2').combobox([
'Yo',
'Mo',
'Jo'
]);
jQuery('#option_changer').click(function (e) {
jQuery.combobox.instances[0].setSelectOptions([
'Apples',
'Oranges',
'Bananas'
]);
});
});
</script>
</head>
<body>
<div>
<h1>jQuery.combobox Demo</h1>
<p>
by <a href="http://dellsala.com/">Dell Sala</a><br>
<a href="https://github.com/dellsala/Combo-Box-jQuery-Plugin">Get it from github</a>
</p>
</div>
<div>
<label for="input1">Field1:</label> <input id="input1" type="text" value="">
<label for="input2">Field2:</label> <input id="input2" type="text" value="Hello"><br>
<br>
<br>
<input id="option_changer" type="button" value="Change Field 1 Options">
</div>
</body>
</html>