On 16 abr, 14:49, MorningZ <morni...@gmail.com> wrote:
> Since "inform id" or "inform the name" doesn't make much sense, do you
> mean
>
> "search for ID and fill in the name or search the name and fill in
> ID?"

Yes, that's it. Sry for my bad english.

> this would pretty much be done on the server side where you
> concatenate the two fields, search for the match, and then return the
> key/value pair and use "formatItem" to put them in their respective
> places

But if i want the id 1 the list will return:

1
10
11
12
13
...

Thats why i'm using a input for id and other for the name.

> On Apr 16, 1:12 pm, Giuliani Sanches <giulianisanc...@gmail.com>
> wrote:
>
> > I'm trying to use the autocomplete from 
> > herehttp://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
>
> > I have two fields in my database table:
>
> > id
> > name
>
> > In my form i need to be able to inform id and return the name or
> > inform the name and return id.
>
> > Is there some example around ?
>
> > Ty :)

Reply via email to