How to close a jQuery fancybox from button click

前端 未结 9 959
你的背包
你的背包 2021-01-01 15:52

I\'m using fancy box to create a popup and load another page on it using an iframe. here is my code

    

        
9条回答
  •  一生所求
    2021-01-01 16:39

    call to $.fancybox.close();

    also look on this answers in the post

    According to http://fancybox.net/faq

    1. How can I close FancyBox from other element? ?

    Just call $.fn.fancybox.close() on your onClick event

    So you should just be able to add in the fn.

提交回复
热议问题