Hi,
I want progressbar for 'FOR' loop. when the loop stop then progress bar status will be 100%.can anyone help
Hi,
I want progressbar for 'FOR' loop. when the loop stop then progress bar status will be 100%.can anyone help
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Mar 20, 2023, 1:05 AM
In the modified code, I had replaced the original for loop with a setInterval function that will increment the progress bar every time it's called. The progress value is updated on the interval by incrementing it by 1 until it reaches 100. I added a new function updateProgressBar to update the progress bar's text with the current progress percentage. This function is called every time the progress bar is updated.
Amit MohantyPosted Mar 15, 2023, 6:06 AM
Check this