Tabber V4 - switch tabs with links in product description
Posted: 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:
Add the following:
And in your Product Descriptions use:
Changing the 1 (the first tab) and the TAB ONE as appropriate.
In Design / Library / Layouts / TabbedDescriptions / Tabber Setup.
Just above the last line:
Code: Select all
</script>
Code: Select all
function settab(idx, anc){
$("div[id='tabber_" + anc + "']").tabs('select', idx-1);
}
Code: Select all
!!<<a href="javascript:void(0)" onclick="settab(1,'[EncodedProductAnchor]')">TAB ONE</a>>!!