how to pass two PHP variables in the onclick function of the html button?

0
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.

    
asked by anonymous 08.11.2018 / 17:21

0 answers