Lightbox won't work after ajax content update

谁说胖子不能爱 提交于 2019-12-11 11:18:40

问题


I have a calendar http://tinyurl.com/bn9r6lk . (plugin: http://tinyurl.com/7axlse4)

the content loads through Lightbox Plus wp plugin.

Can't get the lightbox to work after any switching of the month. Even when I change back to the initial month.

Help is much appreciated.


回答1:


I don't have any experience with Lightbox but for other plugins I am using a reload function after each Ajax request. Please, check jQuery.getScript.

$.getScript("plugins/lightbox.js");


来源:https://stackoverflow.com/questions/12893406/lightbox-wont-work-after-ajax-content-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!