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

  • Home
  • SEARCH
  • 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 322937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:59:05+00:00 2026-05-12T08:59:05+00:00

I am using jQuery UI tabs to have a tab where I can search

  • 0

I am using jQuery UI tabs to have a tab where I can search for records and then other tabs where I can view individual record details. I am trying to have search results link clicks open the relevant tab and load the specific ajax content for that search result.

I am able to switch tabs using an href with something like the jQuery UI tabs example code:

var $tabs = $('#example').tabs(); // first tab selected

$('#my-text-link').click(function() { // bind click event to link
    $tabs.tabs('select', 2); // switch to third tab
    return false;
});

I see ajax content is normally loaded via setting the href on the tab itself:

<li><a id="customerTabLink" href="#tabs-2"><span>Customer</span></a></li>

I’ve tried adding this to the my-text-link onclick function to dynamically set the href for the tab but that doesn’t load the content in my tab.

$('#customerTabLink').attr("href", "/view/dspClient.cfm?id_customers=15");

Is there another way I can be loading ajax content in the tab without setting this href? Or am I setting the href incorrectly? Is this something I should be using the load even for? http://docs.jquery.com/Events/load

Thanks!

-Matt

  • 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-12T08:59:06+00:00Added an answer on May 12, 2026 at 8:59 am

    To change the URL that tab is using for AJAX calls you should use this:

    $('#example').tabs('url', 1, '/view/dspClient.cfm?id_customers=15');
    

    First argument tells that you want to change tab URL. Second argument is the index of the page you want to change the url (zero-based so 1 is the second tab), and third argument is the new URL.

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

Sidebar

Related Questions

I have created an interface using jQuery UI Tabs, however one of my requirements
I have a UI using dynamic tabs, so content can be loaded into a
I am using jquery UI tabs I have three ajax tabs like so: <div
I am using the jQuery UI tabs where each tab has a different form
I'm using JQuery UI tabs where I have several forms within tabs. What I
I'm using jQuery UI tabs, loading the tab content via ajax. Content may contain
I am trying to control HTML5 videos using JQuery. I have two clips in
I'm developing a site using jQuery, and jQuery UI tabs. For some reason, my
Using the jQuery UI Tabs component, is it possible to select new tabs on
I'm using jQuery to create a load of tabs for a web application. I've

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.