I'm using two jQuery queues and i want one of them to dequeue after another is finished. How can I know if the first one is finished? Should I use a third queue??!
Here is what I have:
var $q = $({});
$q.queue('firstQ', function (next) {
// blah blah
next();
});
$q.queue('secondQ', function (next) {
// blah blah
next();
});
$q.dequeue("firstQ");
$q.dequeue("secondQ");