0

I added fadeout+remove from this code jquery table rows line totals and grand total ,but the UpdateTotals(this)'s stop working.Some help would be greatly appreciated.

Thanks very much

$('body').delegate('.delete', 'click', function() {          
//$(this).parents('tr').remove(); // UpdateTotals works fine
$(this).parents('tr').fadeOut('normal', function() { $(this).remove()}); //UpdateTotals won't work
UpdateTotals(this);
});
Community
  • 1
  • 1
  • Try putting `UpdateTotals` before the fadeout – Musa Mar 28 '13 at 02:17
  • Side note: Use [`.on()`](http://api.jquery.com/on/) rather than `.delegate()`. `$('body').on('click', '.delete', function() {})` – Dom Mar 28 '13 at 03:13

0 Answers0