How to close a jQuery fancybox from button click

前端 未结 9 1060
你的背包
你的背包 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:43

    $.fn.fancybox.close() doesn't work for version 2.x, in fact, it raises an error. If you're using version 2.x, try $.fancybox.close(true) instead.

提交回复
热议问题