I have a link that I want to make a DELETE query using jQuery with AJAX.
if(confirm("Are you sure?")) {
$.ajax({
url: $(this).attr("href"),
type: 'DELETE',
success: function(result) {
}
});
}
resultis a piece of Javascript that I would like to run. How do I run it to return the returned script?
source
share