try it
$ when ($ ('# Foo') delete ().), and then (stepb ()); .. Hit> [ Example1 ] [1] and [ Example2 ] [2].
$('#foo').remove(); stepb();
Since the remove method in jQuery is synchronous, stepb() will be called after remove() . Therefore, there is no need to use $.when().then() .
The alpha
source share