+ 3
How can i define the start value of a form's input?
I'm talking about a 'number' input but a don't know I can set the initial value e.g. 20
6 Answers
+ 13
<input type = "number" min=20 max=100 placeholder="Enter number here">
+ 2
I think you should have used <input type = range min=0, max=40, value=20/> instead of using the number input type. I strongly believe this is what you wanted to do
the number type is different from range type, so please check and try the range.
+ 1
I wrote <input type="number" min=0 max=40 value=20> but when I click on the arrows on the right part appears the number 1.
I want to appear the number 20
0
No I want a input where I can wrote a number but I'd like to have 20 as default value
0
value=20
0
the placeholder attribute let you put an exemple or a description of what you want receive from the user
placeholder="Enter number here "example : 20">