I have a <input id="txtCustome2r" />
I have in my .ready function
$("#txtCustome2r").autocomplete({
source: "itemcomplete.asp",
minLength: 2,
select: function( event, ui ) {
log( ui.item ?
"Selected: " + ui.item.value + " aka " + ui.item.id :
"Nothing selected, input was " + this.value );
}
});
the auto complete return valid json
[ { "id': "4", "label": "Kathi ", "value": "Kathi "}, { "id': "6", "label": "Kathleen ", "value": "Kathleen "}]
and nothing shows up in the drop down. Any help is greatly appreciated!
Thanks!
Single quotes are not valid JSON. You’ll need to surround your key names and string values with double quotes:
If you want to check your JSON response for validity, you can use JSONLint.