jQuery load() overwrite

I have some problems with `load()` functions. I have a `collection.html` page, in this page I have a image slaider. All works perfect, but when I load other page, and then go back to `collection.html` slaider, some of images divs has previous settings, for example
If I click on menu more times, load functions keep previus data on memory. How to create that, if I click on collection.html link, that calls load functions, each time start loading from beggining, not to from previus state? Here is click event: $('.menu ul li.collection_link a').click(function(){ $('.menu ul li').removeClass('active'); $(".height").css("height","750px"); $(this).parent().addClass('active'); var link = $(this).attr('href'); $("#primary").fadeOut("fast", function () { $("#primary").load(link, { limit: 25 }, function(){ $("#primary").fadeIn("fast"); }); }); return false; });
How did you initialize the slider?

以上就是jQuery load() overwrite的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏