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

Javascript examples for DOM HTML Element:Input Datetime Local

Description

Input DatetimeLocal stepDown() Method - Decrement 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  w ww.j a v a2  s.  c o m*/
    document.getElementById("myLocalDate").stepDown();
}
</script>

</body>
</html>

Related Tutorials