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

Javascript examples for DOM HTML Element:Input Datetime Local

Description

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

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>
Date: <input type="datetime-local" id="myLocalDate" value="2014-11-16T15:00:33">

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

<script>
function myFunction() {/*from ww  w  .j av a2 s .c  o  m*/
    document.getElementById("myLocalDate").stepUp();
}
</script>

</body>
</html>

Related Tutorials