HTML DOM Input Date disabled Property

The HTML DOM Input Date disabled property sets/returns whether Input Date is enabled or disabled.


Following is the syntax −

  • Returning boolean value - true/false
  • Setting disabled to booleanValue
inputDateObject.disabled = booleanValue

Boolean Value

Here, “booleanValue” can be the following −

trueIt defines that the input date is disabled.
falseIt defines that the input date is not disabled and it is also the default value.


Let us see an example of Input Date disabled property −

 Live Demo

<!DOCTYPE html>
<title>Input Date Disabled</title>
Date Select: <input type="date" id="dateSelect" disabled>
<button onclick="enableDateInput()">Enable Date Input</button>
<div id="divDisplay"></div>
   var divDisplay = document.getElementById("divDisplay");
   var inputDate = document.getElementById("dateSelect");
   divDisplay.textContent = 'Date Input disabled: '+inputDate.disabled;
   function enableDateInput() {
      inputDate.disabled = false;
      divDisplay.textContent = 'Date Input disabled: '+inputDate.disabled;


This will produce the following output −

Before clicking ‘Enable Date Input’ button −

After clicking ‘Enable Date Input’ button −