I have few lines of code, but is not working, I can't understand why. Please, if someone tell me where i am wrong
var data = {
"sugestii":[{
"nume":"Hunedoara (tot judeţul)",
"id":"123220",
"tip":2
},{
"nume":"Hunedoara (din judeţul Hunedoara)",
"id":"126958",
"tip":1
},{
"nume":"Hunia (din judeţul Dolj)",
"id":"101566",
"tip":1
},{
"nume":"Hunedoara Timisana (din judeţul Arad)",
"id":"14257",
"tip":1
}]
}
// setup autocomplete function pulling from data [] array
$('#autocomplete').autocomplete({
lookup: data,
onSelect: function (suggestion) {
var thehtml = '<strong>data Name:</strong> ' + suggestion.nume + ' <br> <strong>Symbol:</strong> ' + suggestion.id;
$('#outputcontent').html(thehtml);
}
});