So I am appending a div to the body and this div will popup on click of on image a tag actually. To achieve the body overlay effect, I am using fancybox. However I am able to append the div to body, but this div doesn’t load as a fancybox. Can someone help here:
My code is here:
http://jsfiddle.net/refhat/xap9F/60/
Further am I missing something in the fancybox, I am also not seeing the close cross on top right corner of fancybox in chrome and clicking anywhere on fancybox just closes the fancybox, which should not be the case.
Here is some code you could use to create an overlay:
And you call it like this: