Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
I believe you’ll use the progress tag like in this article: https://www.w3schools.com/tags/tag_progress.asp Next you’ll have to access the value attribute and increase it by one. E.g. var a = document.getElementById(“thing”); a.value = a.value + 1;
17th Jan 2022, 9:57 PM
Ollie Q
Ollie Q - avatar
0
Another alternative is incrementing it's value like a.onclick=()=>{ a.value++ }
17th Jan 2022, 10:24 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar