Open up first Fancybox picture automatically

前端 未结 1 1824
情书的邮戳
情书的邮戳 2021-01-25 10:16

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 im

相关标签:
1条回答
  • 2021-01-25 10:58

    Try adding:

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

    after you create the fancybox.

    0 讨论(0)
提交回复
热议问题