0

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
1
  • 2
    ro is not in Core. Did you mean to write or? Commented Mar 1, 2011 at 19:34

2 Answers 2

5

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
Sign up to request clarification or add additional context in comments.

Comments

2

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

2 Comments

sorry i didn't see this page. i use google and forget about this demo
@senzacionale: there's a link to the demo page in the page your question links to.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.