New course! Every coder should learn Generative AI!
Try a free lesson+ 2
HTML input type time tag
i want my HTML input type time tag to only accept numbers and not letters or any other characters please help
6 Answers
+ 2
<input type="num">
or use JS
+ 2
congrats on the certificate john
+ 1
u can directly use time attribute..
like <input type="time" name="time">
+ 1
use the isNaN() function, it will return false if it is a number and true if it isn't
+ 1
ypu can input 0-9 and few characters
https://code.sololearn.com/W4vPGEX11J4X/?ref=app
0
How do i do it with JS