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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:29:15+00:00 2026-06-09T13:29:15+00:00

I am using jquery tab UI for creating my tabs. I hided span tag

  • 0

I am using jquery tab UI for creating my tabs. I hided span tag with unique value in each tabs. I would like to find span tag with values with the particular tab index.

Example::

If there is a two tabs tab1 and tab2. In tab1 i hide value ‘1’ and in tab 2 value ‘2’. Now i want to search in all tabs and find 1 and return the index number in this case it will be 0. Then it will open that tab with the index ‘0’.

I can use jquery contain function for searching thorugh list but i just wonder how can i return the particular index of tab when the match found.

Any help would greatly appreciate.

Thanks

  • 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-09T13:29:17+00:00Added an answer on June 9, 2026 at 1:29 pm

    But basically you can use the $.each() method (jQuery .each() API).
    Within the function arguments, the i stands for the index, which you can loop through.

    $('[id^="tab"]').each(function (i, el) {
        $(this).append(' -- Index: ' + i);
    });
    

    jsFiddle DEMO

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

Sidebar

Related Questions

I am using jQuery UI tabs. I have 10 tabs, and each tab holds
I am creating the tab using jQuery: $(document).ready(function() { $(#tabs).tabs(); }); and the html:
I'm using jQuery tabs for an interface. I'd like my main div (the tab
I´m trying to open a tab using jquery, here is my code: $(#ecContenedorFolders).tabs({ tabTemplate:
I am finding the selected jquery tab ui element using the following: $(li.ui-tabs-selected).attr(id) This
I define a tabs using JQuery <div id=tabs> <ul> <li><a href=#tabs-1>Tab 1</a></li> <li><a href=#tabs-2>Tab
using jquery ui tabs , when you load a tab in ajax, the tab
I am using jquery ui tabs Inside a tab i want to inset an
Does anyone have any resources about creating your own tab control without using jQuery
I'm using a dynamic jQuery tab widget to add/remove tabs generated programmatically. How do

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.