I am trying to restrict users input when selecting time on input=time
. so is it possible to disable the small clear button from the input?
input[type="time"]::-webkit-calendar-picker-indicator { background: none; display:none; } removes the space too.
To clear all the input in an HTML form, use the <input> tag with the type attribute as reset.
$('input[type=date]'). val(''); $('input[type=date]'). val('0000-00-00');
Just add the required
attribute:
<input type="date" required>
I tested it in Chrome and it's working fine for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With