I don't know how can we trigger the max value from the input element which contains min and max attributes. With this configuration we're setting a minimum time, a maximum time, and the distance between a selectable time and the following (in number of seconds), respectively. Declarative templates with data-binding, MVC, dependency injection and great testability story all implemented with pure client-side JavaScript! Using the input itself is annoying, but the Chromia also offer some good popup date pickers for everything but time. Preventing the default function I have customized it to use the with separate inputs. Links. By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy. @MarcosPérezGude : I've just been improving readability, indentation and spacing of this and various other questions. I should have specified minimum value to 0 for my demo up there as a negative number doesn't make sense for number of movie watched in a week. For one thing, a browser that doesn’t support the max attribute will still allow a user to enter an invalidly high value. Specifies that its input element is a precise control for setting the element’s value to a string representing a number.