Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

teampoison's avatar

Progress bar issue in javascript

I create a progress bar when i run it then all are running simutaneously. i want next run after first finish

https://i.ibb.co/mR92wTB/2022-12-31-14-45-08-Window.png

$progressBar
      .css('background-size', calc + '%100%')
      .attr('aria-valuenow', calc );

      $progressBar1
      .css('background-size', calc + '% 100%')
      .attr('aria-valuenow', calc );

      $progressBar2
      .css('background-size', calc + '% 100%')
      .attr('aria-valuenow', calc );

it will change the color now i want to use progress bar value in progress bar 1 and progress bar 1 value in progress bar 2

0 likes
1 reply
Sinnbeck's avatar

Then use setTimeout to make 2 and 3 start later. I assume they each run for a certain amount of time? Or are there code you left out?

Please or to participate in this conversation.