With jQuery 1.6 version you can use the .promise()
method.
$(selector).fadeOut('slow');
$(selector).promise().done(function(){
// will be called when all the animations on the queue finish
});
More Related Contents:
- Jquery mouseenter() vs mouseover()
- Code for a simple JavaScript countdown timer?
- Why does Chrome ignore local jQuery cookies?
- Downloading jQuery UI CSS from Google’s CDN
- Parse RSS with jQuery
- How do I format a Microsoft JSON date?
- jquery IDs with spaces
- jQuery cross domain iframe scripting
- jqgrid reloadGrid with loadonce set to true
- jQuery find closest previous sibling with class
- How an I get all form elements (input, textarea & select) with jQuery?
- Jquery get input array field
- How to get input type using jquery?
- Set Focus After Last Character in Text Box
- How to use jQuery to add form elements dynamically
- $(window).unload is not firing
- How to close jQuery Dialog within the dialog?
- jQuery select by class VS select by attribute
- jQuery/CSS: line-height of “normal” == ?px
- jquery – Read a text file?
- How to Parse XML Cross-domain in jQuery?
- Trying to make multiple background images cycle through a slideshow with CSS and JQUERY
- jQuery Validation plugin: validate check box
- how to avoid cross domain policy in jquery ajax for consuming wcf service?
- What’s faster for including scripts, using CDN (Google) or storing them locally in website’s root?
- Is there a difference between $().ready() and $(document).ready()
- Disable select options based on value *through the HTML only!*
- jQuery.getJSON not working properly in IE8 with gdata json-c. Why? [duplicate]
- Can jQuery selectors be used with DOM mutation observers?
- How do you change the default widget for all Django date fields in a ModelForm?