+ 1

In the progress element, the value we are giving in code is showing in the web page, why it is not random upon the users wish

16th Sep 2020, 2:14 PM
Gourav Debnath
6 Respuestas
+ 3
Gourav Debnath That kind of functionality is to be added with JavaScript Lemme quickly make an example code!
16th Sep 2020, 2:36 PM
Vachila64☕
Vachila64☕ - avatar
+ 3
Here you go ANKIT 10 minutes of sprint code😪😂😅 https://code.sololearn.com/WihRv4JoX38U/?ref=app
16th Sep 2020, 3:33 PM
Vachila64☕
Vachila64☕ - avatar
+ 1
What do you mean by "random"? It's not some input element ,you need to add functionality to take input from user to add user specified value or be more clear if it's not what you are talking about
16th Sep 2020, 2:18 PM
Abhay
Abhay - avatar
+ 1
I am telling that if we give the value such as 50 and 60 then in the webpage it will show the status is 50% or 60% why it is not random that means why it is not changing upon the users task
16th Sep 2020, 2:21 PM
Gourav Debnath
+ 1
You can use a little of javascript to make it functional
16th Sep 2020, 2:36 PM
ANKIT
ANKIT - avatar
0
Try this <body> <progress id="pro" min="0" max="100" value="10"></progress> <script> var a = prompt("enter value less than 100 "); document.querySelector("#pro").value = a ; </script> </body>
16th Sep 2020, 3:53 PM
Divya Mohan
Divya Mohan - avatar