autocomplete fill value instead of label on select.. why?
Hi, this is my code:
- <div class="ui-widget">
- <input id="places_autocomplete" />
- </div>
- $( "#places_autocomplete" ).autocomplete({
- source: 'http://localhost/nightlife/events/events/get_all_places',
- select: function( event, ui ) {
-
- }
- });
Don't know why, ONLY when item is selected from returned json data, it fills me up with the item value.
This does not happen until all labels are just proposed.
Why?