0
Я хочу автозаполнение функциональности последовательного поиска не подстроки результатов поиска в JQuery.автозаполнение с последовательными результатами поиска в JQuery
Следующая Функция проверки подстроки также, но мне нужно только последовательный поиск.
var data = [
"Apple",
"Orange",
"Pineapple",
"Strawberry",
"Mango"
];
/* jQuery ready function. Specify a function to execute when the DOM is fully loaded. */
$(document).ready(
/* This is the function that will get executed after the DOM is fully loaded */
function() {
/* binding the text box with the jQuery Auto complete function. */
$("#fruits").autocomplete({
/*Source refers to the list of fruits that are available in the auto complete list. */
source:data,
/* auto focus true means, the first item in the auto complete list is selected by default. therefore when the user hits enter,
it will be loaded in the textbox */
autoFocus: true ,
});
}
);
Он отлично работает спасибо –