-
Notifications
You must be signed in to change notification settings - Fork 4
/
SelInvsToLink2.php
54 lines (49 loc) · 1.43 KB
/
SelInvsToLink2.php
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
<html>
<head>
<!--Updated: Added new version of jQueryUI CDN.-->
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<style>
p, div, input {
font: 16px Calibri;
}
.ui-autocomplete {
cursor:pointer;
height:120px;
overflow-y:scroll;
}
</style>
</head>
<body>
<p>Setting focus in the below box will automatically show the dropdown list. <br /> Start type in the value to search for values!</p>
<div>
<input type="text" id="tbCountries" />
</div>
</body>
<script>
$(document).ready(function() {
BindControls();
});
function BindControls() {
var Countries = ['ARGENTINA',
'AUSTRALIA',
'BRAZIL',
'BELARUS',
'BHUTAN',
'CHILE',
'CAMBODIA',
'CANADA',
'DENMARK',
'DOMINICA',
'INDIA'];
$('#tbCountries').autocomplete({
source: Countries,
minLength: 0,
scroll: true
}).mouseover(function() {
$(this).autocomplete("search", "");
});
}
</script>
</html>