Javascript examples for DOM HTML Element:Input Week
Input Week max Property - Change the maximum week and year allowed:
<!DOCTYPE html> <html> <body> Week and Year:/*from w w w . j a v a 2 s .c o m*/ <input type="week" id="myWeek" min="2018-W12" max="2018-W19"> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("myWeek").max = "2018-W35"; document.getElementById("demo").innerHTML = "changed"; } </script> </body> </html>