Consider the following snippet:
$('.remove_item').click(function(e) {
var _item = $(this).closest('.cart_item');
if(confirm('Biztosan törölhetem a terméket a kosárból?')) {
_item.effect('highlight', {}, 100).stop().fadeOut('fast');
_item.remove();
...
I'd like to highlight the actual row before trashing (.remove()
) it. If i don't .remove()
the item, highlight working.
How can i highlight first, then remove element?