Question

Inside fancybox window I would like to retrieve html element (anchor probably) from which fancybox was called. How can this be done?

Was it helpful?

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
scroll top