How to receive the value of seconds using the HTML5 input time?

1

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

However, only the hour and minutes appear for me:

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

How do I change to be able to receive the seconds as well?

    
asked by anonymous 28.09.2016 / 03:32

1 answer

1

Try this way.

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

step defines how much time the seconds are, for example, if I put step="10" the second walk will be 10 in 10.

    
28.09.2016 / 03:41