Home > Software design >  Disable only calendar modal of <input type = "date">
Disable only calendar modal of <input type = "date">

Time:10-22

How to deactivate only the calendar modal that appears when clicking the calendar icon, in input of type date

<input type="date">

enter image description here

CodePudding user response:

Apply the following styles:

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
      display: none;
      -webkit-appearance: none;
  }

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
      display: none;
      -webkit-appearance: none;
  }
<input type="date"> 
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" frameborder="0"></iframe>

  • Related