Good day.

How can I implement switch time in hours and minutes?

For example in any Internet store, there is a field for editing the number with two buttons " + "to add and" - " to subtract. I have about the same field only with hours and minutes. By clicking on add like +10 minutes, subtract 10 minutes.

This principle: 1:10 .... 1:50 - 2:00 and so on.

Thanks in advance:3

How can I implement switch time in hours and minutes?

For example in any Internet store, there is a field for editing the number with two buttons " + "to add and" - " to subtract. I have about the same field only with hours and minutes. By clicking on add like +10 minutes, subtract 10 minutes.

This principle: 1:10 .... 1:50 - 2:00 and so on.

Thanks in advance:3

asked July 12th 19 at 17:23

1 answer

answered on

Solution

Without jQuery, something like this: https://jsfiddle.net/7hbwxhoy/

Find more questions by tags HTMLJavaScriptjQuery