$(".delete").on("ajax:success", function () { $(this).closest("div").fadeOut(); });