开发者

Reloading jQuery Scripts on image click

开发者 https://www.devze.com 2023-02-22 09:50 出处:网络
I\'m building a webpage at the moment with a content switcher than will contain a lightbox. my problem at the moment is that the lightbox works on load, but when I switch content and switch back again

I'm building a webpage at the moment with a content switcher than will contain a lightbox. my problem at the moment is that the lightbox works on load, but when I switch content and switch back again it doesn't function.

I'm assuming that I will need to reload the code once I switch back to the content with the lightbox in it. is there a way that I can have the jQuery script run once on load (initial page) and then reload itself every time I switch back to the content? the link to switch con开发者_运维知识库tent is an image. Can anybody help me? I can't seem to get a click function to work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号