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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:57:27+00:00 2026-05-10T22:57:27+00:00

I know this specific question has been asked before , but I am not

  • 0

I know this specific question has been asked before, but I am not getting any results using the bind() event on the jQuery UI Tabs plugin.

I just need the index of the newly selected tab to perform an action when the tab is clicked. bind() allows me to hook into the select event, but my usual method of getting the currently selected tab does not work. It returns the previously selected tab index, not the new one:

var selectedTab = $('#TabList').tabs().data('selected.tabs'); 

Here is the code I am attempting to use to get the currently selected tab:

$('#TabList').bind('tabsselect', function(event, ui) {  }); 

When I use this code, the ui object comes back undefined. From the documentation, this should be the object I’m using to hook into the newly selected index using ui.tab. I have tried this on the initial tabs() call and also on its own. Am I doing something wrong here?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T22:57:27+00:00Added an answer on May 10, 2026 at 10:57 pm

    For JQuery UI versions before 1.9: ui.index from the event is what you want.

    For JQuery UI 1.9 or later: see the answer by Giorgio Luparia, below.

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

Sidebar

Related Questions

I'm sorry if this question has been asked before, but I'm not even sure
I know this flavor of question has been asked multiple times, but I've spent
Yes I know there has been similar posts to this however after looking through
ok, first of all, I know this is not possible with 1.2., that is
Does it make sense to use an OR-mapper? I am putting this question of
I have been looking at and playing with OWL through Protege and I would
I have a table TRANSACTIONS with a columns: TRANSACTIONKEY (int) Primary Key TRANSACTIONTYPEKEY (int)
I am tackling ASP.NET, MVC 3, web development, for the first time, all at
I'm interested in what purpose various platforms / compilers (implementations) / frameworks assign to
I've come across these questions: Incorrect Commit Message In Mercurial and Is qrefresh harmful

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.