input type = time how to set 5 minute intervals and close menu when time SELECTED or button to close EDIT

Viewed 4727

so I have

<input type = "time" name = "mytime" id = "mytime">

the issue is that when the user select a time the menu remains open. is there a way to close the menu after they select a time on it?

Basically when the user click an hour/minute it should close. Or is there a way to add a button

the user see every minute from 0-59

I want the minute to be in interval of 5 so 0,5,10, etc is that possible?

1 Answers

You can do <input type="time" step="300"> where 300 is 5 minutes in seconds.

For more information, see the MDN Doc for time input

Related