I have a link, which I want to make a DELETE request with JQuery with AJAX.
if(confirm("Are you sure?")) {
$.ajax({
url: $(this).attr("href"),
type: 'DELETE',
success: function(result) {
// Do something with the result
}
});
}
result is a wad of Javascript I would like to run. How do I get it to run my returned script?
1 Answer