Javascript examples for DOM HTML Element:Input Date
Input Date step Property - Get the legal day intervals:
<!DOCTYPE html> <html> <body> Date: <input type="date" id="myDate" step="5"> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {//ww w . j av a 2 s . c om var x = document.getElementById("myDate").step; document.getElementById("demo").innerHTML = x; } </script> </body> </html>