[jQuery] Re: autocomplete: extra fields

2010-01-14 Thread MorningZ
I tried for so long to accomplish what you ask (which i think is tell the server side autocomplete target "what field am i?"), only to throw up my hands in dismissal... I finally just did it this way: say i had: I just wired up the plugin like so: $(".ac").each(function() { $(this).a

[jQuery] Re: autocomplete: extra fields

2010-01-14 Thread Michael Lang
If you want the extraParams passed to your data url to include other form input values then you need to define the values as a function. In that function use jquery to get the values of the other inputs. $("#addressCity").autocomplete('http://www.example.com/api/ getcities/', {