Quote:it's just refreshing but not deleting
, the browser will post the content to the server and reload the page. In normal cases, a page is refreshed unless there is an action attribute applied to the form (if the element is within a
An easy way to handle this is to add a
var id = $(this).attr("rel");
var delete_url = "darb.php?delete="+ id;
Now your code would run and show the modal—your modal will take it from here as the browser will not reload the page.
Read more about