fancybox: finding anchor from which fancybox was called
-
18-09-2019 - |
Question
Inside fancybox window I would like to retrieve html element (anchor probably) from which fancybox was called. How can this be done?
Solution
I found a way to do this. I need to pass onStart function:
onStart(selectedArray, selectedIndex, selectedOpts)
and then call:
selectedArray[selectedIndex].orig
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow