I am using lightgallery plugin to display images of my website on click. I initialized the light gallery as
$(document).ready(function(){
$('#lightgallery').lightGallery({
selector: '.item'
});
});
At the document load its working fine. The problem is when i am loading more images and appending them using jquery i want to reinitialize the lightgallery again to work for the iamges loaded by ajax call. But the lightgallery is not working for them. It is working only for the images which are loaded at the time of page loading.