In Firefox, input type="date"
brings a calendar popup on click. In Chrome, we can use ::-webkit-calendar-picker-indicator
to hide the down arrow button showing the calendar. Apart from preventing the default behavior on click, I haven't found a -moz pseudo-element equivalent to hide the calendar. I don't want to use type='text'
either.
Is there any way to hide this popup calendar in Firefox?
If you have no event link to your input you can do :
$('#your-input').on('click', function(){
return false;
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.