How can I create an afterclose event with FancyBox3? I’m using afterClose event with the second version of fancybox but i’m trying to upgrade to fancybox3 and the instructions say to put the options in “data-options” attribute. Here’s what i tried: and also: Answer Your 2nd snippet should work, see this demo – https://codepen.io/anon/pen/OQmBZy?editors=1010 HTML JS I have put alert(‘Done!’)
Tag: fancybox
Fancybox hyperlink on zoom image
I used to have an hyperlink that is anchored to an image. But I now when I click the image it needs to zoom in first so I used Fancy box, then the zoom in image must have the link. Is it possible? Here is my code below Answer For future reference, it is possible but you need to create
Populate countries and cities dropdownlist with javascript in asp.net
I have a register form in a fancybox as an inline content and can access to it in all the site as the link is in the master page. On the register form I have two dropdownlists one for country and the other for city. When the user changes the country the dropdownlist of cities refresh as the country selected