jQuery(function($){
// Chamando as funções
$('#busca-cidades').keyup(function(){ ...
I am doing a query in the database and returning this query formatted with html / css and the query is in WordPress SQL. So far nothing very different. The problem is that when I query with the keyup
event every letter I type makes a query and in addition, the page still blinks as if it had given refresh
.
What event could I use to make the query only when I finish typing the word?