Ребят, подскажите новичку,что я делаю не так с формой поиска? Автозаполнение не работает (
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3.custom.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<div class="search">
<form action="" method="get">
<div class="inpt"><input id="quickquery" type="text" name="poisk" placeholder="Search (Meklēšana)" /></div>
<input class="knopka" type="image" src="img/search-butt.png" name="bb" />
</form>
</div> <!--cl search-->
И в functions.js :
$(document).ready(function () {
var clubs = [
'La Rocca',
'Royal Casino SPA',
'Season SPA',
'Sebastian Gallery',
'Royal Casino Hotel',
'Studio 69',
];
$("#quickquery").autocomplete({
'source':clubs,
"minLength":2,
"autoFocus":true,
"delay":10,
//"disabled":true,
//"minLength":3
/*
change:function (event,ui) {
alert("change");
},
close:function (event,ui) {
alert("close");
},
create:function (event,ui) {
alert("create");
},
close:function (event,ui) {
alert("focus");
},
*/
/*
open:function (event,ui) {
alert("open");
},
response:function (event,ui) {
alert("response");
},
search:function (event,ui) {
alert("search");
},
*/
});
//$("#monts").autocomplete("disable");
//$("#monts").autocomplete("enable");
//alert($("#monts").autocomplete("option","delay"));
//$("#monts").autocomplete("search","Март");
});