Tony Brix
Tony Brix

Reputation: 4241

How to set a progress element to indeterminate

How can I set a progress element to indeterminate after setting a value?

Upvotes: 4

Views: 3510

Answers (1)

arjabbar
arjabbar

Reputation: 6404

According to your documentation:

If there is no value="" attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.

And still according to the documentation:

To change the progress bar to indeterminate after giving it a value you must remove the value attribute with element.removeAttribute("value")

Upvotes: 5

Related Questions