Enter settings and click Apply to test them!
Remove the widget by clicking Destroy
people states |
minSearchChars :
|
|
showFullListOnFocus :
|
searchDelay :
|
|
arrowHoldScrollInterval :
|
Including your own functions: (leave empty for default behavior)
$('#myTextBox').autoSuggestList({
searchMatchCondition: mySearchCondition,
textBoxFormatter: myFormatter
});
// remember searchText enters this function with same capitalization as entered in textbox
function mySearchCondition(item, searchText, matchCase, displayProperty) {
}
function myFormatter(item, displayProperty) {
}
var people = [
{id: 1, name: 'Fry', phone: '555-555-1111', tag: true},
{id: 2, name: 'Leela', phone: '555-555-2222'},
{id: 3, name: 'Bender', phone: '110-001-0110', tag: "let's go already!"},
{id: 4, name: 'Amy', phone: '555-555-4444'},
{id: 5, name: 'Zoidberg', phone: '555-555-5555'},
{id: 6, name: 'Farnsworth', phone: '555-555-6666', tag: 'good news, everyone'},
{id: 7, name: 'Hermes', phone: '555-555-7777', tag: 'my manwich!'},
{id: 8, name: 'Scruffy', phone: '555-555-0000'},
{id: 9, name: 'Zapp', phone: '555-555-8888'},
{id: 10, name: 'Kif', phone: '555-555-9999'},
{id: 11, name: 'Morbo', phone: '555-555-1234'},
{id: 12, name: 'Calculon', phone: '555-555-5678'},
{id: 13, name: 'Elzar', phone: '555-555-3333'}
];
var states = [
'Alabama','Alaska','Arizona','Arkansas','California','Colorado','Connecticut',
'Delaware','Florida','Georgia','Hawaii','Idaho','Illinois','Indiana','Iowa',
'Kansas','Kentucky','Louisiana','Maine','Maryland','Massachusetts','Michigan',
'Minnesota','Mississippi','Missouri',,'Montana','Nebraska','Nevada',
'New Hampshire','New Jersey','New Mexico','New York','North Carolina',
'North Dakota','Ohio','Oklahoma','Oregon','Pennsylvania','Rhode Island',
'South Carolina','South Dakota','Tennessee','Texas','Utah','Vermont',
'Virginia','Washington','West Virginia','Wisconsin','Wyoming'
];
$('#myTextBox').autoSuggestList({
list: people,
displayProperty: 'name',
// demo defines showOutput() to listen to and display event info above textbox
itemSelected: showOutput,
itemMouseenter: showOutput,
});