echo '<button onclick="deleteVaga('.$id,$cidade.')"><i class="far fa-trash-alt" style="font-size:36px;color:#f00;"></i></button>';
In the deleteVaga function, it recognizes only one passed variable, but I do not know how to pass $ id and $ city as two parameters, then search with ajax.