<input type="for phone no?"> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

<input type="for phone no?">

I tried type="number" but it has up-down arrow to increment or decrement. and I don't want that.

3rd Feb 2018, 8:21 PM
Catherine Winslet
Catherine Winslet - avatar
11 Answers
+ 14
<input type='tel'> used for inputting telephone number
4th Feb 2018, 12:17 AM
Amethyst Animion
Amethyst Animion - avatar
+ 13
Каким кремом для загара пользуешься?
11th Feb 2018, 3:11 PM
\__(° = °)__/
+ 5
does 'tel' stand for telephone? I wasn't aware of that. Thank you
4th Feb 2018, 12:03 AM
Catherine Winslet
Catherine Winslet - avatar
+ 4
Yes, I want a phone number as input. Thank you for the help I tried <input type="1">, it worked as well.
3rd Feb 2018, 8:50 PM
Catherine Winslet
Catherine Winslet - avatar
+ 4
<input type="tel">
18th Apr 2018, 4:32 AM
Charlotte Philips
Charlotte Philips - avatar
3rd Feb 2018, 8:27 PM
Limitless
Limitless - avatar
+ 3
In storm's case all you have to add is type="text" You can analyse the number using Javascript
3rd Feb 2018, 8:46 PM
Limitless
Limitless - avatar
+ 3
i think you can write "number" here.
3rd Feb 2018, 9:00 PM
Muhammad Shahbaz
Muhammad Shahbaz - avatar
+ 2
what do you want to achieve? getting phone numbrr as input?
3rd Feb 2018, 8:42 PM
storm
storm - avatar
+ 2
sorry for answering late. as JFS said, you can use tel, or as an alternative, still can use number but with a fixed lenght.
4th Feb 2018, 6:17 AM
storm
storm - avatar
+ 1
<input type="tel" name="phone" size="10" >
11th Feb 2018, 5:48 PM
Saksham Sangal
Saksham Sangal - avatar