issa-tseng / awesomecomplete

A lightweight autocomplete plugin for jQuery. Autocomplete that doesn't suck — I think.
http://dontexplain.com/2009/08/jquery-plugin-lautocomplete/
52 stars 7 forks source link

Submit Id instead of input text value #7

Closed zsoerenm closed 12 years ago

zsoerenm commented 13 years ago

A usefull feature would be to submit a different value to the server instead of what it is in the textbox.

Maybe create a hidden field?

issa-tseng commented 12 years ago

Obviously I've dropped the ball on meaningfully answering this question, but for future reference, the idea behind the onComplete callback is so that you can take the full, rich, original data object and assign anything on it wherever you want, including a hidden input field.