Quantcast
Channel: How to set the min/max attribute on input type=date - Stack Overflow
Viewing all articles
Browse latest Browse all 8

min/max attribute with type = date on HTML5

$
0
0

I'm having some problems to set a minimum and a maximum YEAR with HTML5 date input.

Here is my code:

<input required="required"  min="1900-01-01" max="2099-09-13" type="date" class="form-control" id="inputDataNascimento">

It doesn't work at all.

enter image description here

Am I doing something wrong? Is this a bug?

Notes: I'm using Google Chrome and Twitter Bootstrap 3.


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images