Page 1 of 1

Tabber V4 - switch tabs with links in product description

Posted: Mon Jan 07, 2013 8:32 pm
by norman
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.