简体   繁体   中英

Refresh tab content on click in JQuery tabs

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!

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>

Disabling AJAX on the pages with external plug-ins seemed to be the easiest way to fix this thanks to the theme developers.

Thanks for your help Roschach! Your suggestion did work although wasnt the solution I was after in the end.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM