KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have been able to use input type date with min and max attributes in a form I am designing taking advantage as much as possible of HTML 5. Nevertheless I am not able to do the same if input type is time . Relevant code: <input style='width:120px' required name='dia' id='dia' type='date' min="1991-01-01" max="2014-05-12"> <input style='width:80px' required name='hora' id='hora' type="time" min="08:00:00" max="20:00:00"/> (min and max in the latter are ignored) Other relevant information: As far as I can tell the HTML 5 specification allows min and max in both cases. I am using minimizr and webshims for this form which makes input date fields available in FF, etc. No different behavior detected between recent major browsers. A site like W3C schools mentions min and max for date but not for time which may indicate a general lack of enthusiasm for min and max as attributes for time. Am I missing something obvious?
Tags (comma-separated)
Save Edits
Cancel