当前位置: 动力学知识库 > 问答 > 编程问答 >

jquery - html5Lightbox doesn't work after ajax

问题描述:

this script is awesome http://html5box.com/html5lightbox/, but after masonry+infinite scroll load it doesn't work...

How can I reassign click function to show lightbox window instead open image directly?

thanks

网友答案:

This is the solution

$("#mydiv").load("scripts/loadimage.php",function(){
    $(".html5lightbox").html5lightbox();
});
分享给朋友:
您可能感兴趣的文章:
随机阅读: