$('li[data-related-item-id="<%= @related_item.id %>"]').fadeOut('slow', function() { $(this).remove(); });