I have two effects that I want to run one after another, but I can\'t work out how to pass $(this) to the callback from the first effect.
$(this)
This is what I
Save the reference.
if($(this).hasClass('flag')) { var el = this; $('someElement').slideUp(function() { $(el).slideDown(); }); }