How to link to Specific Tab (Again)
-
Hello,
I have read through your previous post on this here but I still cannot get this to work for me.
I have a small ‘Need Help‘ section with href text (size/dimension chart), that ideally, when clicked I want it to open my ‘View More Details’ preview section and automatically open the ‘Harness Size Guide’ tab.
I have this as my following code:-
HTML
<a href="#tab-harness-size-guide">size/dimension chart</a>
JQUERY
jQuery(document).ready(function( $ ){ jQuery( 'body' ).on( 'click', 'a[href^="#tab-harness-size-guide"]', function() { var href_pieces = jQuery( this ).attr( 'href' ).split( '#tab-harness-size-guide ); var href = '#tab-title-harness-size-guide' + href_pieces[1]; jQuery( href ).children( 'a' ).click(); }); });
Any help on this would be really appreicated.
Thanks in advance!
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How to link to Specific Tab (Again)’ is closed to new replies.