Initialize plug-in after ajax load
Hello,
I'm 100% newb and am having an issue initializing a lightbox type plugin after an ajax response. I've looked at several other posts regarding this, but they all don't seem to answer the question explicitly.
The plugin is usually initialized with .ready, but I've read on this forum that .ready won't work after page load or with dynamic loading. Most posts say to initialize right after the ajax response... I've done this and it works for the first ajax load, but not for the subsequent ajax loads. It should trigger the same code every time ajax is called since it goes through the same function, but it doesn't. So I'm totally confused.
Project Info: This project seems pretty simple... There are links that load content into a DIV via ajax... the content is made up of thumbnails that should launch lightbox...
Is there a good way of dynamically initializing plugins after ajax load?