Skip to content

Start/stop intermediate progress #866

Answered by tamagoez
mattbodman asked this question in Q&A
Discussion options

You must be logged in to vote

I think this will works.
First, Give ID to your element.
If you want to make it indeterminate, execute document.getElementById("id").removeAttribute('value').
If you want to make fixed one, add value attribute like document.getElementById("id").value = "0.5".
I hope you can solve!
Ex: https://codesandbox.io/s/vibrant-christian-hg6wgm?file=/pages/index.js

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#:~:text=To%20change%20the%20progress%20bar%20to%20indeterminate%20after%20giving%20it%20a%20value%20you%20must%20remove%20the%20value%20attribute%20with%20element.removeAttribute(%27value%27).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by mattbodman
Comment options

You must be logged in to vote
1 reply
@tamagoez
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants