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 8212931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:56:21+00:00 2026-06-07T10:56:21+00:00

How do you reload the currently selected Twitter Bootstrap tab? This is what I

  • 0

How do you reload the currently selected Twitter Bootstrap tab?

This is what I have so far, but it just makes any subsequent tabs reload multiple times.

function reload_tab() {
   $('a[data-toggle="tab"]').on('shown', function (e) {
       $('#tab-loaded-content').load($(e.target).attr('href'));
   });
}
  • 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-06-07T10:56:23+00:00Added an answer on June 7, 2026 at 10:56 am

    Try just

    $('#tab-loaded-content').load($('li.active a[data-toggle="tab"]').attr('href'));
    

    What you were doing is every time you call the reload function, it binds to the shown event (didn’t know that existed honestly) to reload that tab. Call it twice, tabs will reload twice. not what you want!

    The one liner above simply tells it to load the content from the href attribute of the link that is a child of the active tab li.active.

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

Sidebar

Related Questions

Okay, what I currently have is a TabBarController with five tabs. Each of these
I don't have much knowledge on Java EE but am currently learning it. I've
What's the best way to get the currently selected tab via the tab panel's
Is it possible to reload a form after 'file-input' change? I have a form
I want to reload just my web layer classes without reloading my service layer
i want to reload ViewdidLoad in a method But now want to call again
I'm having a weird error with Internet Explorer (Currently version 8, but had the
Is there any tool like Reload Player for 1.2 to test my scorm 2004
I need help making this code work better. Currently, what happens is when it
I am currently just working on simple and final UI changes for a website

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.