http://docs.jquery.com/Plugins/autocomplete
can autocomplete check words in the middle of the string. If i wite "C" i can get "Core" but if i write "re" i will not get "Core"...
asked Mar 1, 2011 at 19:33
senzacionale
21k67 gold badges210 silver badges322 bronze badges
2 Answers 2
You have to set the option for contains. Specifically, set 'matchContains: true'. The demo page provide the following example that uses 'matchContains':
$("#suggest14").autocomplete(cities, {
matchContains: true,
minChars: 0
});
answered Mar 1, 2011 at 19:37
Eric Di Bari
3,8777 gold badges43 silver badges49 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
Yes, it can. You could see that for yourself in <60 seconds at the demo page. Type n into the Single Bird field.
answered Mar 1, 2011 at 19:35
Matt Ball
361k102 gold badges655 silver badges725 bronze badges
2 Comments
senzacionale
sorry i didn't see this page. i use google and forget about this demo
Matt Ball
@senzacionale: there's a link to the demo page in the page your question links to.
lang-js
rois not inCore. Did you mean to writeor?