![](/img/trans.png)
[英]How to show calendar popup when input[type="date"] is on focus
[英]hide the calendar popup of <input type=“date”> in Firefox
在Firefox中, input type="date"
會在點擊時彈出日歷。 在Chrome中,我們可以使用::-webkit-calendar-picker-indicator
隱藏顯示日歷的向下箭頭按鈕。 除了防止默認的單擊行為外,我還沒有找到等效的-moz偽元素來隱藏日歷。 我也不想使用type='text'
。
有什么方法可以在Firefox中隱藏此彈出式日歷嗎?
如果您沒有輸入的事件鏈接,則可以執行以下操作:
$('#your-input').on('click', function(){
return false;
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.