prettyPhoto Live Event with ajax loaded content

Prettyphoto is a wonderfull gallery plugin but when used with ajax loaded content it didn’t work with newly loaded images from ajax request into the dom. Even though there are many solutions posted in internet none seem to work as expected. So after playing around a while i found a simple trick



or the selector you used for prettyphoto into the ajax returned content. And prettyphoto started to work with ajax loaded images too :).

Hire me at

Leave a Comment