I am using this http://fancybox.net/
I have 2 div
s: 1st open and 2nd hidden
In the first FancyBox
, I want to run several things in callbackOnShow
and then once done, it closes and opens the second hidden Fancybox
.
However I used $( a#div-2 ).trigger( click );
and it is not working.
It seems that the FancyBox
trigger won t allow within callbackOnShow
.
If I do that trigger when document ready, the second box shows.
Any help on how to solve this?