2
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 a lot of ways to do that, but I couldn’t. How do I find something, search in bold.
For example:
pada
padalaugh
Sorry for not placed before: What I’m looking for is something in this: https://www.tudoaquicampinas.com.br/campinas-sp
– Rogério Pancini