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

Javascript examples for DOM HTML Element:Input Date

Description

Input Date stepUp() Method - Increment the days by 1 (default):

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>
Date: <input type="date" id="myDate" value="2014-05-05">

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

<script>
function myFunction() {//from  w ww. j  a  v  a2s  . c o m
    document.getElementById("myDate").stepUp();
}
</script>

</body>
</html>

Related Tutorials