dss087358 2014-07-03 07:47
浏览 241
已采纳

单击JQuery选项卡中的刷新选项卡内容

Im having an issue with using tabs via Visual Composer for Wordpress, along with an extension for Visual Composer called Visual Composer Modal Popups.

Basically I have all my sub level pages loading in tabs, although it seems to not load any Jquery scripts needed for the content with in each tab, unless I refresh the page (in which they then seem to work fine).

Link: http://gjwalsh.marketingmatch.net.au/who_we_are-2/

"Team members" tab on the above page is the trouble.

Is there anyway I can force load or force refresh upon clicking a tab?

This way the content would appear correctly first time and not after manually refreshing the page. Or I'm open to any other suggestions as I am not that code savvy, any help is greatly appreciated in advance!

  • 写回答

2条回答 默认 最新

  • duanhan9479 2014-07-03 08:13
    关注

    I'll suggest load jquery and assign the id to that tab and on click function reload the page.

    jQuery("#team").click(function() {  location.reload(true); });
    

    Or Using Javascript with the help of onclick function

    <a href="#tab-1403849707999-3-7" id="team" onClick="window.location.reload()">TEAM MEMBERS</a>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?