13
rated 0 times
[
19]
[
6]
/ answers: 1 / hits: 7084
/ 11 Years ago, mon, december 9, 2013, 12:00:00
I'm trying to run a function on the selector that addClass was just ran on after addClass is completed.
This way made sense to me, but it doesn't seem to be working:
$('.focused').addClass('fadeOutDown', function(){ $(this).remove(); });
How can I run a function after I've ran the addClass function on the same selector?
Chaining runs it at the same time and I haven't tried a set-timeout, but that seem inefficient.
More From » jquery