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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:56:55+00:00 2026-05-21T14:56:55+00:00

I am sure there is some jQuery wiz out there that can do that

  • 0

I am sure there is some jQuery wiz out there that can do that in 5-6 lines… my code look more like spaghetti now, so that why i ask here

I have about 20 sideshow on a page with <prevandnext> buttons

i like on any 1 sec to execute a click on any next sideshow on random

Do it will be lees distraction, that having 20 sideshow auto advance all at once…

How do you do that with jQuery

on every 1 second, select any class=next (button) and click()

—

just for the record : that dont work !

<script type="text/JavaScript">
jQuery(document).ready(function($) {
    setInterval( $('.next').click(), 1000 );
});

</script>
  • 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-21T14:56:56+00:00Added an answer on May 21, 2026 at 2:56 pm

    Pass a function to setInterval.

    jQuery(function($) {
        var $next = $('.next'); // cache the selector for better performance
        setInterval(function () {
            $next.click();
        }, 1000 );
    });
    

    If you want to randomly pick just one of the '.next' to click:

    jQuery(function($) {
        var $next = $('.next'),
            n = $next.length;
        setInterval(function () {
            $next.eq(Math.floor(Math.random()*n)).click();
        }, 1000 );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now that JavaScript libraries like jQuery are more popular than ever, .js files are
I'm sure there's some trivial one-liner with perl, ruby, bash whatever that would let
I'm trying to make sure some data is auto-deleted when there's no more references
Really basic question I'm sure for some of you Java heads out there. I
Is there some client components (jquery/swf) that will give the possibility to upload and
I have some jQuery code that highlights which radio button is checked by turning
I have some jQuery code that is having difficulty running because I'm using it
I'm sure there's some way to do this with the \defgroup, \addgroup and \@{
Pretty sure there is an easy answer to this, but just can't find the
I'm sure there are a million posts about this out there, but surprisingly I'm

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.