How to add validation/restrictions for HTML5 date field without jquery/javascript

You can use min and max attributes on your date input.

Spec : http://www.w3.org/TR/html-markup/input.date.html

Edit :

Leave a Comment