+ 3

How do i assign a progress bar to a variable?

<form><type="progress" min="0" max="100" value=?></form> x = 26

23rd Feb 2018, 6:42 PM
Punderful20 Quack
Punderful20 Quack - avatar
2 ответов
+ 2
x = document.getElementById ("giveItAnId").value;
23rd Feb 2018, 6:44 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
+ 1
inside the div put your form and inside it put an input tag with type progress and an id of your choice. now create a variable in javascript and assign to it the code i gave you earlier
23rd Feb 2018, 6:53 PM
Dominique Abou Samah
Dominique Abou Samah - avatar