jQuery autocomplete plugin shows results that begin with the query you type into a search box. How would you amend the plugin to allow you to show results that contain the query you are typing? for example, i am searching for people, i want to be able to type either a firstname or a surname, i type 'and' i want it to show Adam *And*erson, James *And*erson, *And*y Smith
views:
171answers:
1
+1
A:
The version of the "autocomplete" plugin I use already has a "matchContains" option. If that's set to true, then it behaves exactly as you describe.
Pointy
2010-03-05 08:29:19
DOH! I should learn to read. Thanks Pointy... it works
ak
2010-03-05 09:13:32