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

Javascript examples for DOM HTML Element:Input Week

Description

Input Week stepDown() Method - Decrement 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  .  ja  v a 2 s.  c om*/
    document.getElementById("myWeek").stepDown();
}
</script>

</body>
</html>

Related Tutorials