.. _tabs-sangah-widget: ================== Tabs Sangah Widget ================== .. code-block:: javascript $('.content_area').initTab(); // activate tab functionality $('.content_area').activeTab(); // return the active tab index $('.content_area').activeTab('2'); // will set the tab with index '2' as current tab .. note:: [NOTE These functions have to be called from an element parent of 'tab_sub' element or an error will be thrown.] EXAMPLE: .. code-block:: javascript $(function(){ $('.content_area').initTab(); $('.tab_sub a[data-index="1"]').click(function(){ ... }); $('.tab_sub a[data-index="2"]').click(function(){ ... }); $('.tab_sub a[data-index="3"]').click(function(){ ... }); ... .. code-block:: html ...
...