jQueryUI: Autocomplete
jQueryUI: Autocomplete
I want to insert 2 values in the same row in the autosuggest item. I also want to add a tab between these 2 values and grey out the 2nd value. Is that possible using the Autocomplete plugin? Below is the code which I am using..please see the
highlighted line where i am trying to insert the second value..it appears in the dropdown of suggestions but there is no whitespace between 1st and 2nd value(also how do i change the font color for the sencond value?)
$('#searchtext').autocomplete({
source: function(request, response) {
$.ajax({
url: "Search",
dataType: "json",
data: {
term: request.term
},
success: function(data) {
response($.map(data, function(item) {
return {
value: item.Value + " " + item.Type
}
}));
}
}); // ajax close
},
minLength: 2
});