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

Javascript examples for DOM HTML Element:Input Week

Description

Input Week stepUp() Method - Increment the weeks by 1 (default):

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<input type="week" id="myWeek" value="2014-W15">

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

<script>
function myFunction() {/*from ww  w. j av a  2 s .  co m*/
    document.getElementById("myWeek").stepUp();
}
</script>

</body>
</html>

Related Tutorials