-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
38 lines (34 loc) · 1.25 KB
/
test.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
<!DOCTYPE html>
<html lang="ru">
<head>
<script src="jquery-current.min.js"></script>
<script src="jquery.autocomplete.js" charset="utf8"></script>
<link rel="stylesheet" href="autocomplete.css"/>
<script>
$(document).ready(function(){
$('#input1').autocomplete({
dictonary:['дом','улица','квартира','город'],
url: 'address.html',
reqParam: 'word'
});
$('#input2').autocomplete({
dictonary:['дом','улица','квартира','город'],
url: 'address.html',
reqParam: 'word',
multipleEnter: true
});
});
</script>
</head>
<body>
<form action="?ok=1">
<div>
test single field <input type="text" name="a" id="input1" style="width: 300px"/>
</div>
<div style="margin-top: 100px">
test multiple field <input type="text" name="b" id="input2" style="width: 300px"/>
</div>
<input type="submit"/>
</form>
</body>
</html>