How to receive seconds value using HTML5 input time?

Asked

Viewed 954 times

1

I need to work with fields in Mysql in hours, minutes and seconds like 00:29:13.

Yet only the hour and minutes appear to me:

<input type="time" class="form-control" name="hora" placeholder="Hora" id="hora">

How I change to be able to receive from the user also the seconds?

1 answer

1


Try this way.

<input type="time" class="form-control" step="1" name="hora" id="hora">

step define how far the seconds go for example if I put step="10" The seconds will run every 10.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.