jQuery Autocomplete - Modifying Source Data

If the jQuery autocomplete plugin uses a remote datasource, the autocomplete expects it to return json data with a 'label' and/or a 'value' field. If the remote source returns neither a 'label' or 'value' and you cannot change the returned json of the remote source, you can modify the 'source' option of the autocomplete to assign one or both of the 'label' and 'value' fields values found in the json result.

return to post on jensbits.com