Input Week step Property - Get the legal week intervals: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Week

Description

Input Week step Property - Get the legal week intervals:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>
Week: <input type="week" id="myWeek" step="3">

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

<p id="demo"></p>

<script>
function myFunction() {//from w  w w.  j  a v a  2  s .c o m
    var x = document.getElementById("myWeek").step;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

Related Tutorials