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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:25:56+00:00 2026-06-14T12:25:56+00:00

I am searching a jquery plugin where: – you can set a time countdown

  • 0

I am searching a jquery plugin where:
– you can set a time countdown
– set a function when countdown arrives to 0;
– start/stop/pause/reset the countdown

Can anyone help me?
Thanks a lot.

  • 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-14T12:25:57+00:00Added an answer on June 14, 2026 at 12:25 pm

    You can write one yourself without a library quite easily:

    <!-- HTML -->
    <a href="#" class="start">start</a>
    <a href="#" class="stop">stop</a>
    <a href="#" class="pause">pause</a>
    <a href="#" class="reset">reset</a>
    
    <div class="time"></div>
    

    – ​

    //Javascript
    var startValue = 120000; //Number of milliseconds
    var time = new Date(startValue);
    var interv;
    
    
    function done(){
        alert("Timer reached 00:00!");
    }
    $(function(){
        displayTime();
        $(".start").on("click", function(){
        interv = setInterval(function(){
            time = new Date(time - 1000);
            if(time<=0){
                done();
                clearInterval(interv);
            }
            displayTime();
        }, 1000);
        });
        $(".stop").on("click", function(){
            clearInterval(interv);
            time = new Date(startValue);
            displayTime();
        });
        $(".pause").on("click", function(){
            clearInterval(interv);
        });
        $(".reset").on("click", function(){
            time = new Date(startValue);
            displayTime();
        });
    });
    
    function displayTime(){
        $(".time").text(fillZeroes(time.getMinutes()) + ":" + fillZeroes(time.getSeconds()));
    }
    
    function fillZeroes(t){
        t = t+"";
        if(t.length==1)
            return "0" + t;
        else
            return t;
    }
    ​
    

    JsFiddle

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

Sidebar

Related Questions

Some time ago I'm searching a jQuery plugin that can help me move a
I'm currently using the jQuery HighlightFade plugin and can't seem to find if anyone
i'm searching for a jquery plugin that can scroll text in a container DIV
I need a jQuery plugin for searching a large select box with 10 to
I'm searching after a color picker jquery plugin, but not like all this: http://www.jquery4u.com/plugins/10-color-pickers-plugin/#.UHK6XU1mKa8
Does anyone know of a simple jquery plugin to allow special characters such as
I'm trying to reset flash content within my slider powered by jQuery Cycle Plugin.
Searching for rotators based on JQuery only finds the original rotator plugin and a
I'm searching for a jQuery plugin that does this. for example: <label><input type=checkbox depends_on=foo=5
I'm searching for a jQuery plugin with following functionality: It should display an input

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.