<html>
<body>
<input type="date" id="myDate"><br><br>
<button onclick="disableBtn()">Disable Date Field</button>
<button onclick="undisableBtn()">Undisable Date Field</button>
<p><strong>Note:</strong> input elements with type="date" do not show as any date field/calendar in IE 11 and earlier versions.</p>
<script>
function disableBtn() {
document.getElementById("myDate").disabled = true;
}
function undisableBtn() {
document.getElementById("myDate").disabled = false;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_input_date_disabled3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:15 GMT -->
</html>