It works in Chrome and Opera, but not in Firefox.
This property has some strange effects across browsers, so is not completely reliable.
Docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time#using_the_step_attribute
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I'm trying to set a step in my time input field.
I have tried this : it adds the seconds in the field.
<input type="time" step="1" />
I have read this to display only each 5 minutes but it doesn't work.
<input type="time" step="300" />
It gives for the minutes : 00, 01, 02, 03, 04, ... and I'd like to have 00, 05, 10, 15, ...
Do you have any idea ?
Thanks for your help.
Vincent
It works in Chrome and Opera, but not in Firefox.
This property has some strange effects across browsers, so is not completely reliable.
Docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time#using_the_step_attribute
Please or to participate in this conversation.