Home > Software design >  How can I disable default element in <input type="date" > on mozilla firefox
How can I disable default element in <input type="date" > on mozilla firefox

Time:07-08

I have an input tag that have an icon for pick date from calendar . On firefox browser there is an close button after picking date . How can I disable that button. here is that button

CodePudding user response:

Adding required to the input works for me in both Chrome and Firefox:

<input type="time" required>
<input type="date" required>

  • Related