Skip to content Skip to sidebar Skip to footer

Open Up First Fancybox Picture Automatically

Upon clicking on a link, I am bringing in some images from a JSON get, and then when clicking on one of the pictures can get the gallery to appear, but I would like the first image

Solution 1:

Try adding:

  $("#imgs a:first").trigger('click');

after you create the fancybox.

Post a Comment for "Open Up First Fancybox Picture Automatically"