Please help me with refreshing the page after post success, instead of animate. I've tried window.opener.location.href, but it doesn't do any good. Thanks for your help!
$(function () {
$(".delbutton").click(function () {
//Save the link in a variable called element
var element = $(this);
//Find the id of the link that was clicked
var del_id = element.attr("id");
//Built a url to send
var info = 'id=' + del_id;
if (confirm("Are you sure you want to remove this item?")) {
$.ajax({
type: "GET",
url: "delete",
data: info,
success: function () {
}
});
$(this).parents(".record").animate({
backgroundColor: "#fbc7c7"
}, "fast")
.animate({
opacity: "hide"
}, "slow"); //instead of this, I want page to refresh after confirmation
}
return false;
});
});