Javascript examples for DOM HTML Element:Input Date
Input Date min Property - Change the minimum date:
<!DOCTYPE html> <html> <body> Date:/* ww w .j a va 2 s . co m*/ <input type="date" id="myDate" name="bday" min="1980-01-01" max="2000-01-01"> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("myDate").min = "1999-01-01"; document.getElementById("demo").innerHTML = "changed from '1980-01-01' to '1999-01-01'."; } </script> </body> </html>