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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:03:39+00:00 2026-05-25T00:03:39+00:00

I am using a jquery slider which automatically generates pagination bullets with the following

  • 0

I am using a jquery slider which automatically generates pagination bullets with the following html output:

<ul class="pagination">
    <li class="current"><a href="#0">1</a></li>
    <li><a href="#1">2</a></li>
    <li><a href="#2">3</a></li>
    <li><a href="#3">4</a></li>
</ul>

You can see an example of this at http://pixelcakecreative.com/

I want to be able to reset the slides position (set it back to the first slide) when you click on one of the following anchor links:

<li><a href="#" rel="#panel-1" class="activeSlide pita">Trendz<div class="buttonFade"></div></a></li>
<li><a href="#" class="pita" rel="#panel-2">Decibel<div class="buttonFade"></div></a></li>
<li><a href="#" class="pita" rel="#panel-3">UCC<div class="buttonFade"></div></a></li>

The slider is actually 3 sliders within a div that switches it’s position based on whatever anchor (above code) is clicked. So basically, when you click on any of the links that switch the project slider, I want to go back to the first image of the slider.

I tried this with no luck, any idea on how to do this?

Ill start off the jquery with my existing code for clicking one of the trigger links:

$('#pixel-slider ul a.pita').click(function () {

     $('#pixel-slider ul a').removeClass('activeSlide');
     $(this).addClass('activeSlide');   
     $('.maskss').scrollTo($(this).attr('rel'), 500);

//solution below

$(‘.pagination li:nth-child(1) a’).click();

return false;       
});

UPDATE: I Found solution: $(‘.pagination li:nth-child(1) a’).click();

  • 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-25T00:03:39+00:00Added an answer on May 25, 2026 at 12:03 am

    Your solution will work but you can simply use the first selector instead of using nth-child and passing 1. li:first will select the first element under .pagination element.

     $('.pagination li:first a').click();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a JQuery UI slider which has two handles (a.k.a range slider). I
i'm having a shop system which is displaying articles using a jquery slider plugin,
I have done a jQuery slider using EasySlider which is supposedly IE6 compatible and
Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, how would you find elements which have a particular style (eg: float:
I am using the jquery-ui slider as a sideways scroll bar, and am having
I am trying to implement a type of slider using jquery. However this question
I have a div which displays the current value of the slider and the
I'm a jquery noob--using easyslider 1.7--buttons are over the slider--so effects muddle the jQuery...using
Using custom jquery to create a stand alone slider and a stand alone accordion

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.