jQuery: attach .fancybox() to a new element passed by .load() function -


When I get a new element from the load () function, the function can not be found to attach the way. For Fancybox (a Lightbox plugin) elements.

I have tried. () And .delegate (), but think that. Fancybox () can not be considered as a custom event. I probably miss something ...: << p>

After the loading you need to wait until the DOM is updated load ( ) Add a one-shot timer to the success function called by. It should do the trick.


Comments