gpt4 book ai didi

javascript - 输入日期时日期选择器 Bootstrap 错误 (FireFox)

转载 作者:行者123 更新时间:2023-11-28 07:46:22 25 4
gpt4 key购买 nike

我正在使用 bootstrap-datepicker 和以下代码:

$('#approved-date').datepicker({
autoclose: true,
});

在 Firefox 浏览器上,当我输入“12/10/2”之类的日期时,会出现错误:

enter image description here

按如下方式输入时会自动选择日期:

enter image description here

如何关闭输入时自动选择日期的功能?

最佳答案

试试这个代码:

<input type="..." disabled="disabled" />

只需添加 disabled="disabled"到您的输入字段或<input type="text" autocomplete="on | off">如果您不删除自动完成功能

关于javascript - 输入日期时日期选择器 Bootstrap 错误 (FireFox),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27394793/

25 4 0
文章推荐: c++ - STL Set inside Map ,奇怪的段错误和Valgrind分析
文章推荐: ios - GPUImage : GPUImageVideoCamera with ARKit
文章推荐: html - Firebug 显示的
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com