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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:49:33+00:00 2026-06-10T10:49:33+00:00

I am trying to add the next and prev button for both thumbnail and

  • 0

I am trying to add the next and prev button for both thumbnail and larger image gallery. And that next and prev button should support the keyboard event listeners too.

This is the link which I have tried.

http://jsfiddle.net/L7yKp/36/

I need some help.

  • 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-10T10:49:34+00:00Added an answer on June 10, 2026 at 10:49 am

    See http://jsfiddle.net/L7yKp/37/

    The problem is

    $(['next','prev']).each(function(){
        var that=this;
        $('#'+that).click(function(){
            $('#thumbs img.clicked')[that]().click();
        });
    });
    

    because now you have

    <a href="#" id="tnext">Next</a>
    <a href="#" id="tprev">Prev</a>
    

    and

    <a href="#" id="lnext">Next</a>
    <a href="#" id="lprev">Prev</a>
    

    So the solution is;

    $(['next','prev']).each(function(){
        var that=this;
        $('.'+that).click(function(){
            $('#thumbs .clicked')[that]().click();
        });
    });
    

    and

    <a href="#" class="next">Next</a>
    <a href="#" class="prev">Prev</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add a new page to my RoR3 application that should
I'm trying to add a 'next' button to my content rotation. The content for
I am trying to get the next and prev button on my custom pager.
I was trying the next code without success HTML <a id=addBookButton href=javascript:showForm('addBookButton','add-book','activateAddBookForm'); class=addA><span>Add Book</span></a>
I'm trying to add a menu item next to the copy, paste items in
I have the next code to work on ASP.Net controls. I'm trying to add
I'm getting the following error from g++ while trying to add iterator support for
I am trying to add a click event to a LI element but it
I am trying to add a like button to a post in my RoR
I'm trying to add support for tracking application usage to a WP7 app (e.g.,

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.