I am using AJAX to load content of which works perfectly when it loads with the DOM but during AJAX load it fails to initialise.
I am not exactly sure how to proceed to fix this.
Example (the basic loaded DOM)
When you click an image it opens into a modal like preview. But when i load the same content via AJAX, when the pictures are clicked it just treats as a hyperlink and goes to the reference instead of opening into the preview player as expected.
I am 99% sure this is due to the element being loaded into the DOM after initialisation.
An example of a snippet of code that should be loading when clicked a preview
<div class="img-thumb">
<a vdh-685872771="" data-pp="prettyPhoto[blog-gallery]" href="//xxxxxxxxxxxx.eu/home/scripts/<? echo $licensePath; ?>" title="Fashion and Style for the Future">
<div class="img-thumb-hover">
<i class="im-expand2"></i></div>
</a>
<img alt="blog-image" class="img-responsive" src="//xxxxxxxxxxxx.eu/home/scripts/<? echo $licensePath; ?>">
</div>