2
jQuery(function($){
    // Chamando as funções
    $('#busca-cidades').keyup(function(){ ...
I am making 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 consult with the event keyup every letter I type up makes a query and in addition, the page still flashes as if giving refresh.
What event could I use for you to consult only when I finished typing the word?