Is there a way to eliminate the message and structure the results in a sleek dropdown using CSS without relying on Bootstrap or pre-made CSS files?
var aCleanData = ['test','test1','abcd','abee','abc5','test4','te7','tee'];
$('#test').autocomplete({
source: aCleanData,
minLength: 2,
search: function(oEvent, oUi) {
var sValue = $(oEvent.target).val();
var aSearch = [];
$(aCleanData).each(function(iIndex, sElement) {
if (sElement.substr(0, sValue.length) == sValue) {
aSearch.push(sElement);
}
});
$(this).autocomplete('option', 'source', aSearch);
}
});
and this is the HTML code <input id="test">