+ 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

1st May 2017, 2:29 PM
Davide Tomasella
Davide Tomasella - avatar
6 Answers
+ 13
<input type = "number" min=20 max=100 placeholder="Enter number here">
1st May 2017, 3:42 PM
Vidya
Vidya - avatar
+ 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.
1st May 2017, 2:52 PM
nyavowoyi ernest
nyavowoyi ernest - avatar
+ 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
1st May 2017, 2:38 PM
Davide Tomasella
Davide Tomasella - avatar
0
No I want a input where I can wrote a number but I'd like to have 20 as default value
1st May 2017, 3:02 PM
Davide Tomasella
Davide Tomasella - avatar
0
value=20
17th May 2017, 2:35 PM
amel taleb
amel taleb - avatar
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">
4th Jun 2017, 3:02 PM
ismail norri
ismail norri - avatar