jQuery Autocomplete plug-in search configuration
Posted
by dev.e.loper
on Stack Overflow
See other posts from Stack Overflow
or by dev.e.loper
Published on 2010-03-04T20:28:52Z
Indexed on
2010/03/08
15:06 UTC
Read the original article
Hit count: 977
I'm looking into using jQuery autocomplete plug-in to implement user lookup by first or last name. It looks like by default autocomplete looks up words by character sequence no matter its occurrence in a word. So if you have data such as: javascript, asp, haskell
and you type in 'as'
you will get all three. I would like it to at least match beginning of the word. So in above example you get only 'asp'
. Is there a way to configure jQuery Autocomplete plug-in to do this?
Ultimately it would be even better to match by beginning of first or last name like it is in Gmail.
© Stack Overflow or respective owner