WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Sho-Down
    Member
    Posted 4 months 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.

    https://wordpress.org/plugins/put/

  2. Sho-Down
    Member
    Posted 4 months 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>

    or

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

Reply

You must log in to post.

About this Plugin

About this Topic