Javascript examples for DOM HTML Element:Input Week
Input Week step Property - Get the legal week intervals:
<!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>