Input Time stepUp() Method - Increment the minutes by 1 (default): - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Time

Description

Input Time stepUp() Method - Increment the minutes by 1 (default):

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>
Time: <input type="time" id="myTime" value="16:32:55">

<button onclick="myFunction()">Test</button>

<script>
function myFunction() {/*from   www .ja  va  2 s.  c  om*/
    document.getElementById("myTime").stepUp();
}
</script>

</body>
</html>

Related Tutorials