I have this search script:
$( function($) {
$( "#p" ).autocomplete({
source: "php/search_palavras.php?id_cidade=<?php echo $id_cidade; ?>",
minLength: 2,
select: function( event, ui ) {
// Set autocomplete element to display the label
this.value = ui.item.label;
// Store value in hidden field
$('#hidden_p').val(ui.item.id);
// Prevent default behaviour
return false;
}
});
$( "#p" ).click(function() {
$('#hidden_p').val(0);
$('#p').val('');
});
});
I looked for several ways to do this, but I could not. How do I search for something, the search is bold.
For example:
pada
pada ria