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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:18:55+00:00 2026-06-03T15:18:55+00:00

I have been able to implement the Bootstrap carousel complete with icons to represent

  • 0

I have been able to implement the Bootstrap carousel complete with icons to represent slides 1-3 in this example:
http://jsfiddle.net/alexmoss/QzVq8/

I notice that the class “active” is added by default to slide 1 which then changes as the active slide changes. what i want to do is have this happen for the bullets too. i have made the first one active but want the second one to become active if the slide itself is on slide 2, etc etc

  • 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-03T15:18:59+00:00Added an answer on June 3, 2026 at 3:18 pm

    Basically worked out the index of the currently shown slide, then used that index to apply the ‘active’ class to the respective navigation button.

    $('#myCarousel').bind('slid', function() {
        // Get currently selected item
        var item = $('#myCarousel .carousel-inner .item.active');
    
        // Deactivate all nav links
        $('#carousel-nav a').removeClass('active');
    
        // Index is 1-based, use this to activate the nav link based on slide
        var index = item.index() + 1;
        $('#carousel-nav a:nth-child(' + index + ')').addClass('active');
    });
    

    You can clearly optimise the code to use less variables. However, I’ve deliberately expanded it so that you understand what’s going on.

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

Sidebar

Related Questions

I have more or less been able to understand and implement all these concepts
I have this excel file which I have been able to write the data
I've been reading similar questions to this issue and have been able to get
I'm having problems refreshing .Net 2.0 with IIS 6. I have been able to
i have already been able to implement twitter status updates using mgtwitter engine and
I have successfully been able to implement the addition of new artist entries which
I have been able to implement the @Secured annotation in one controller of my
I have been able to design my layout so that it has 2 columns
I have been able to set up OBDC in Filemaker, and added table ,
Hi I have been able to extract a VARCHAR to a date using string_to_date

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.