Question:
How to make an <input type="number">
masked in time format, which accepts 00:00 .
If you put type="text"
just use a mask, but what about type="number"
?
Answer:
This mask feature is not native to the input field. For this you will need JavaScript. JQuery for example has many mask plugins that you can see by clicking here .
In particular, I recommend that you try using jquery input mask
Project Link: https://github.com/RobinHerbots/jquery.inputmask
On this page, the author provides several mask forms that you can use including date mask, numeric, monetary and various other formats available.