Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
Progress bar not working using jquery and html

I have implemented a progress bar on my multi-step form. But after submitting form progress bar is not showing as page reload. Find my code below.

$(document).ready(function() {
    $('#myBtn').click(function(){
        animateProgressBar(90);
 //mybtn is the button id of submit button in form   
    
    
    });
function animateProgressBar(percentageCompleted)
{

$('#innerDiv').animate({
   
'width':(1000*percentageCompleted)/100 


},1000);
$({counter: 1}).animate({counter:percentageCompleted},{duration:1000,
step:function()
{
    $('#innerDiv').text(Math.ceil(this.counter)+'%');
}

})
}

});
 <div id="outerDiv" style="background-color:white; height:20px; width:1000px; padding:5px;">
        <div id="innerDiv" style="background-color:#138581; height:19px; width:0px; color:white; text-align:center;"> </div></div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use localStorage to persist the progress between page reloads.

Use window.localStorage.setItem('progress', 90); to set the progress of the current step in your form.

User window.localStorage.getItem('progress') to retrieve the progress you set previously.

So you would set the current progress in the localStorage, and on each refresh you retrieve it and show it again.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!