Navigate selected TABPANEL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • achotto
    New Member
    • Aug 2009
    • 4

    Navigate selected TABPANEL

    hi.. i want to redirect the page to the 2nd tab, but i dont have any idea how to do it.
    this is the sample codes..

    Code:
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent"><a href="Tab 2">this is Tab 1, click to go tab 2</a></div>
        <div class="TabbedPanelsContent"><a href="Tab 1">this is Tab 2, click to go tab 1</a></div>
      </div>
    </div>
    all i want to do is when the 1st tab comes out, i want to put a hyperlink to the 2nd tab.. is that possible?.. really thanks on advance.
    Last edited by gits; May 7 '10, 09:35 AM. Reason: fix code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    If you have a link as a tab, then it should be easy. If not, you'll need to hide the previous tab and show the new one with the link. You could do that by making a generic function which shows a particular tab and calling that onclick.

    Comment

    Working...