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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:43:39+00:00 2026-05-27T23:43:39+00:00

Not sure if I’m thinking about this the right way. I have a jquery

  • 0

Not sure if I’m thinking about this the right way. I have a jquery touch carousel that I’m working with and it is populated with about 25 country flags. The carousel shows 10 flags at a time and each flag links to a page with information about that country. The carousel stays persistent on each country page. The carousel is built on unordered list items and I have dynamically set the class of the current slide list item to .slider_current.

The issue I’m having is that the slider starts on slide 1 every time you load a new page, but I want it to start on, or at least show the slide with the the class of .slider_current.

I don’t know js/jquery all too well, so I would appreciate any detailed feedback you could give. I’m reading the documentation and thinking sliderInstance.item is a good place to start, but I don’t know how to mark up what I’m thinking. Or possibly using jquery cookie to grab the id of the slide clicked, and then pass that number to the sliderInstance.goTo method, but I’m not sure how to do that.

The slider documentation can be viewed here: Link to documentation

A demo can be viewed here (this is not my production code, I have that set up locally): Link to demo

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-05-27T23:43:40+00:00Added an answer on May 27, 2026 at 11:43 pm

    this should work :

    var sliderInstance = $("#yourCarouselId").touchCarousel({
        /* options go here */
    }).data("touchCarousel");   
    
    
    var index_to_go_to = $(".your-element-class").index();
    sliderInstance.goTo(index_to_go_to);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure if anyone has experience this issue. I have a TextBox that I
Not sure where to start with this one ... I'm thinking about creating a
Not sure if this counts as programming related, it's a tool that I use.
not sure what is wrong with this jquery code: http://jsfiddle.net/aCABM/ I want to to
Not sure why the plugin is behaving this way but whenever I refresh the
Not sure if that the right title for the question, but what I'm trying
Not sure if I'm doing this right: /(https?:\/\/\S+)(\s|(& nbsp;))?/g; This should match a URL
Not sure the most effient way to do this. Bash seems the easiest, I
Not sure where to post this question, but I am concerned about the security
Not sure if this is possible but I have a slideshow on my site

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.