// Remove the deleted alert $("#alert-<%= alert.id %>", ".patient-alerts").fadeOut(300, function(){ $(this).remove();})