Javascript examples for DOM HTML Element:Input Week
Input Week stepUp() Method - Increment the weeks by 1 (default):
<!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>