Javascript examples for DOM HTML Element:Input Date
Input Date stepUp() Method - Increment the days by 1 (default):
<!DOCTYPE html> <html> <body> Date: <input type="date" id="myDate" value="2014-05-05"> <button onclick="myFunction()">Test</button> <script> function myFunction() {//from w ww. j a v a2s . c o m document.getElementById("myDate").stepUp(); } </script> </body> </html>