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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:22:42+00:00 2026-05-16T05:22:42+00:00

I am trying to build a progress bar using jQuery and javascript. It is

  • 0

I am trying to build a progress bar using jQuery and javascript.

It is basically a bar

<div id="progressbar"><div id="progress"></div>
<div id="number">0%</div>

when you click on the next button (which isnt here) it changes the width of the progress div and using css3 it animates it nicely, but my problem here is the number. I have 5 screens so they are all 20% each and I would like to animate the numbers so while the bar is getting wider the number flicks through all numbers from 0% to 20% in the same time as the bar animation (0.5s)

I know with JQuery you could just use the innerHTML command and change it from 0% to 20% but I wanted to animate it.

Any idea how to do that?

  • 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-16T05:22:42+00:00Added an answer on May 16, 2026 at 5:22 am

    1st get the jQuery progressbar plugin.
    Here’s an example.

    Then create a function like:

    num = 0;
    function pbUpdate(value){
         if (num <= value) {
              window.setInterval('updAnimation(' + value + ')', 10);
         }else{
              clearTimeout;
         }
    }
    
    function updAnimation(value){
         num += 1;
         if (num <= value){
              $("#pb").reportprogress(num);
         }
    }
    

    If you look at the examples of the plugin and look at this code, you should get to where you want to go. I’ve used this code as well.

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

Sidebar

Ask A Question

Stats

  • Questions 507k
  • Answers 507k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Update: The better method is to actually specify a Sequence… May 16, 2026 at 4:06 pm
  • Editorial Team
    Editorial Team added an answer For finding duplicate/unused/unnecessary CSS based on your markup, you can… May 16, 2026 at 4:06 pm
  • Editorial Team
    Editorial Team added an answer It's not related to ignoring spaces or not. If you… May 16, 2026 at 4:06 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm trying to build a small app which allows downloading of multiple files at
I am trying to build a custom toggle button in Android, I want it
I'm trying to build a basic application which will have 2 separate components which
I'm trying to build a SL app with a TreeView in it. Here's my
I'm trying to build ZooKeeper on a RedHat Linux box. (Exactly what ZooKeeper is
I am trying to build some big libraries, like Boost and OpenCV , from
Still fooling around with WPF and learning as I go. Trying now to build
Trying to build a legacy code in VS2005 and get errors in VC header
Im trying to build a small frame that displays an image. My problem is
I'm trying to build a search that is similar to that on Google (with

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.