Я бы рекомендовал использовать более новую jQueryUI Autocomplete через Google CDN .
Чтобы включить его в свое приложение, используйте что-то вроде этого
<!-- in your <head> section -->
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css">
Строка smoothness
в URL ссылается на тему jQueryUI. Вы можете изменить это на что угодно. Смотри http://jqueryui.com/themeroller/#themeGallery
<!-- just before the closing </body> tag -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<script type="text/javascript">
jQuery(function($) {
var data = [
"Core",
"Selectors",
"Attributes",
"Traversing",
"Manipulation",
"CSS",
"Events",
"Effects",
"Ajax",
"Utilities"
];
$("#example").autocomplete({
source: data
});
});
</script>
Ссылки 1
в этих URL-адресах относятся к номеру версии. Использование 1
означает использование последней версии из 1 ветки