Post UI Tabs
[resolved] Link to tab from a tab, please help. (2 posts)

  1. Sho-Down
    Posted 2 years ago #

    Each post has it's own tab set and I show 8 posts per page, so I have 8 unique tab sets on each page. I'm wanting to create a "Buy Now" button hyperlink in each tab 1 that when clicked links to the tab set's tab 4.

    This plugin already creates unique tab id's for each set so that's not a problem. I've got it working in Chrome but not Firefox/IE. In FF/IE it just opens a page when clicked that says [object Object]. The code I'm using is:

    <div class="buybutton"><a href="javascript: jQuery('a[href=#tabs-1-4]').click()">BUY A LICENSE</a></div>

    If anyone can help me I'd appreciate it, I've been searching for a solution for days and have had no luck.


  2. Sho-Down
    Posted 2 years ago #

    Think I found my solution. Instead of the code above, you can use:

    <a onclick="$('a[href=#tabs-1-4]').click();">Jump to tab 4</a>


    <a href="javascript:void(0)" onclick="$('a[href=#tabs-1-4]').click();">Jump to tab 4</a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post UI Tabs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic