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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:32:02+00:00 2026-06-15T19:32:02+00:00

What is the jquery ui Tab syntax to select: tabname (not index).. This works

  • 0

What is the jquery ui Tab syntax to select: tabname (not index).. This works standalone but I would like
to combine it with the other .tabs section:

$("#Maintabs").tabs("select", "#Maintabs-1");  // set default tab 

I would like to include it in my existing .tabs section but don’t know the syntax:

$('#Maintabs').tabs({
    selected: 1, // this is where I would like set by tabname NOT index

    select: function (event, ui) {
        var url = $.data(ui.tab, 'load.tabs');
        location.href = url;
            return false;
        }
    }
});
  • 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-15T19:32:04+00:00Added an answer on June 15, 2026 at 7:32 pm

    Well no one responded and in the mean-time, I was motivated to discover one since Firebug showed an error under certain conditions and deployment is just around the corner.
    The goal was to set the default tab to Item (edit) which in most cases is the second tab unless they do not have permissions to insert an new item and only have rights to edit an existing item.

    Because some users do not have rights to create a new item and only edit an existing item, the new item tab is set to hide in Asp.net. Normally, this would be the first tab but since it is not because of rights, only the second tab is visible which made using explicit numbers for setting the tab not doable. So, what was done was prior to creating the tab, a check was done to see if the NewItem tab existed and based on this set the default tab as shown below.

    var intMainTabDef = 1;
    if ($('#hlnkNewItem').length > 0) {
        intMainTabDef = 1;
    } else {
        intMainTabDef = 0;
    }
    
    $('#Maintabs').tabs({
        create: function (event, ui) {
         selected: intMainTabDef
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this script: http://wpaoli.building58.com/2009/09/jquery-tab-slide-out-plugin/ It works well but my problem is that
I have a jQuery tab, and this is my code: $(document).ready(function() { //When page
I am finding the selected jquery tab ui element using the following: $(li.ui-tabs-selected).attr(id) This
I like to use JQuery for creating tabs. My issue is all jquery tab
I understand how to add a jquery-ui tab, and I understand how to select
Is there a way to select the jQuery active tab with a HTML propertys.
I would like to use my existing Jquery UI tabs to shoot my users
I added this to my already existing JQuery tab: function createTab(name) { // this
The following code stringref = tab_2; jQuery('.someclass a:not(.someclass #a_someclass_'+stringref+')').css('color', '#000'); gives me this warning
I have a simple jquery tab, which works fine in all browser except ie

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.