Jquery UI autocomplete accessing !
Im using following code for autocomplete from remote database
- $( "#name" ).autocomplete({
- source: function( request, respond ) {
- $.post( "/Web_Service/AutoSuggestion.php", function( data ) {
- respond( ["you wanted: " + data] );
- },'json');
- },
- minLength: 3
- });
I'm getting data from server as
- {DSName: "sampel"}
- DSName : "sampel"
How to display the received data as autocomplete to the input field..!
when im entering 3 characters "sam" in input field the autocomplete field is displaying as you wanted: [object Object].