I want to pop up a jquery confirmation dialog when i press to delete an item from my database, the code above is inside a while($records=mysql_fetch_aray)
so i have several records:
echo"<tr>
<td>".$registo["id_produto"]."</td>
<td><img src='data:image/jpeg;base64,".base64_encode($registo["pic"])."' width='80' height='80'></td>
<td>".$registo["nome"]."</td>
<td>".$registo["preco"]."</td>
<td>".$registo["quantidade"]."</td>
<td>".$categoria."</td>
<td>".$registo["descricao"]."</td>
<td>".$registo["cura"]."</td>
<td>".$registo["aroma"]."</td>
<td><a href='deleteProduto.php?id={$registo["id_produto"]}'><i class='fa fa-times'></i> Delete</a></td>
</tr>";
When i press the "delete" button i wanted to pop up a jquery confirmation dialog with a "yes" and "no" and when pressed yes go to "deleteProduto.php" with the respective id of the item i want to delete.
I've searched about this but only finded this working with a form and i only want it to work with the 'a href' link with the respective "id".