Tabber V4 - switch tabs with links in product description

Tabbed Product and Fragment Descriptions.
Post Reply
norman
Site Admin
Posts: 1237
Joined: Sat Feb 07, 2004 9:55 pm

Tabber V4 - switch tabs with links in product description

Post by norman » Mon Jan 07, 2013 8:32 pm

If you want to have a link within the descriptions that will activate another tab, do the following:
In Design / Library / Layouts / TabbedDescriptions / Tabber Setup.
Just above the last line:

Code: Select all

</script>
Add the following:

Code: Select all

	function settab(idx, anc){
		$("div[id='tabber_" + anc + "']").tabs('select', idx-1);
	}
And in your Product Descriptions use:

Code: Select all

!!<<a href="javascript:void(0)" onclick="settab(1,'[EncodedProductAnchor]')">TAB ONE</a>>!!
Changing the 1 (the first tab) and the TAB ONE as appropriate.
Norman

Post Reply