Only seconds on input

Asked

Viewed 51 times

-2

How do I make it possible to select seconds in the input?

I don’t need the hours or the minutes, just time to seconds

1 answer

3


Place type="number", max="60" e min="0" input, or configure the max as you wish if it is longer than one minute

    <input type="number" max="60" min="0"/>

  • 1

    Remembering that there is no "60 seconds".. the seconds go from 0 to 59, if I understand the question :D

  • Correct @Sam, I put 60 because I don’t know what the goal is, remembering that to do mathematical operation with seconds, we need 60 seconds to represent 1 minute.

  • It makes sense, but the question is so empty that you don’t know what the AP really wants. I imagine it’s referring to the type input datetime-local, but you can’t be sure.

Browser other questions tagged

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