I'm using the following code and it's working, getting values back etc, but the <b> and <br> tags show up as text rather than get rendered. I'd like the item.id and item.label to be on different lines, if possible the item.id bold:
$( "#predictSearch" ).autocomplete({
source: function( request, response ) {
$.ajax({
url: "index.pl",
dataType: "json",
data: {
term: request.term
},
success: function( data ) {
response( $.map( data.items, function( item ) {
return {
label: '<B>' + item.id + '</B><br>' + item.label,
value: item.id
}
}));
}
});
},
minLength: 2
});
<b>tag is depricated use<strong>instead and<br />is better