It’s probably to late but i think this code work…
$blocks.each(function(i, elm) {
$(elm).fadeOut(200, function() {
$(elm).remove();
});
}).promise().done( function(){ alert("All was done"); } );
More Related Contents:
- How to add pause between each iteration of jQuery .each()?
- Jquery each – Stop loop and return object
- jQuery when each is completed, trigger function
- Return a value when using jQuery.each()?
- jQuery: How to use each starting at an index other than 0
- How to replace element’s attr href with each ? // strip url
- use jQuery’s find() on JSON object
- Create a CSS rule / class with jQuery at runtime
- Custom events in jQuery?
- Best Way to Extend a jQuery Plugin
- How to disable/enable JSF input field in JavaScript?
- Adding event listeners to dynamically added elements using jQuery [duplicate]
- jQuery.animate() with css class only, without explicit styles
- How to detect input type=file “change” for the same file?
- jqGrid data stored in browser cache?
- How to get only direct text without tags with jQuery in HTML
- $().each vs $.each vs for loop in jQuery?
- Efficient, concise way to find next matching sibling?
- jqGrid Reposition Delete Confirmation Box
- disable textbox using jquery?
- jquery – difference between $.functionName and $.fn.FunctionName
- How do I make a JSONP call with JQuery with Basic Authentication?
- How to Remove duplicate dropdown option elements with same value
- How can I disable a button in a jQuery dialog from a function?
- Async and document ready
- How to use multiple jquery object variables as selectors?
- How to select first row of the first table in an html page using jQuery?
- Problems with jQuery autocomplete + AngularJS
- Use jQuery to check mousewheel event without scrollbar
- How can I extend jQueryUI datepicker to accept an additional argument?