Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincent15000's avatar

INPUT type="time" with a step

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

0 likes
3 replies
vincent15000's avatar

Hello @michaloravec thank you for your answer.

Well I'm using Chrome and it doesn't work. Well I'm using Chromium (on Ubuntu).

I'll try with other navigators tomorrow.

Do you know any way to have it work with Chromium or Firefox ?

MichalOravec's avatar

It works in Chrome for me. I have nothing more to say.

1 like

Please or to participate in this conversation.