Input Date step Property - Get the legal day intervals: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Date

Description

Input Date step Property - Get the legal day intervals:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials