Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 769841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:24:07+00:00 2026-05-14T18:24:07+00:00

When #my-text-link is clicked, i need to select tab 5 and when tab 5

  • 0

When #my-text-link is clicked, i need to select tab 5 and when tab 5 is selected i need to hide #my-text-link. hope this makes sense, heres the code, and also what I have done so far, please feel free to show me a better way. Thanks in advance

    var $tabs = $('.tabbed').tabs(); // first tab selected
        $('#my-text-link').click(function() { // bind click event to link
            $tabs.tabs('select', 4); // switch to third tab
            $('#my-text-link').hide();
            return false;
        });


<a href="#" id="my-text-link"></a>

<ul>
<li class="one"><a href="#tabs-1" title="Summary"></a></li>
<li class="two"><a href="#tabs-2" title="Detailed Info"></a></li>
<li class="three"><a href="#tabs-3" title="Images"></a></li>
<li class="four"><a href="#tabs-4" title="Reviews"></a></li>
<li class="five"><a href="#tabs-5" title="Dates &amp; Prices"></a></li>
</ul>

<div id="tabs-1"></div>
<div id="tabs-2"></div>
<div id="tabs-3"></div>
<div id="tabs-4"></div>
<div id="tabs-5"></div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:24:08+00:00Added an answer on May 14, 2026 at 6:24 pm

    As far as I can see from your code, you’ve already managed to open a tab when the link is clicked. Here’s how you hide the link when user opens the tab:

    $(".tabbed").tabs({
        select: function(event, ui) {
            var tabId = ui.panel.id.substring(5);
            if (tabId == 5) {
                $('#my-text-link').hide();
            }
        };
    })
    

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code: ie1.link(:text, /Exception:/) It is producing an error message which I
i need to create a chart similar to this: link text Do you have
So I need the user clicked link in webview, in this case it is
I want to display some text on twitter/facebook when a link is clicked on
I'm using WCF through Spring.net WCF integration link text This works relatively fine, however
I have a site with two images and some text. I need to code
When some one clicks a link I need the select box value to change
I have the following Javascript to make a text link glow/pulsate continuously. This link
so I have something like this - <a href=link... class=text-box-a-href > <div class=text-box> <h4>text...</h4>
I want to select the a tag and display its text when clicked. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.