Input type="number" with time mask

3

How to make a <input type="number"> with mask in hours format, which accepts 00:00 .

If you put type="text" just use a mask, but with type="number" ?

    
asked by anonymous 27.05.2014 / 16:23

1 answer

1

This mask feature is not native input field. For this you will need JavaScript. JQuery for example has many plugins for mask that you can see clicking here .

In particular, I recommend that you try using the jquery input mask

Project link: link

On this page, the author makes available various forms of mask that you can use including mask of dates, numerical, monetary and several other available formats.

    
27.05.2014 / 16:38