更新时间:2023-01-30 08:09:30
我以一种棘手的方式处理,我的日期字段为 type="text"
并且我添加了一个属性为 数据类型=日期"
I handled in a tricky way, i have my date field as type="text"
and i have added an attribute as data-type="date"
在 jquery 中,我正在运行一个代码来动态地将 type="text
& data-type="date"
替换为 type="date"
,因此浏览器不会在加载时将其设为日期字段,但我的 jquery ui datepicker 被调用,因为我将其动态添加为 type="date"
... :)
In jquery, i am running a code to dynamically replace type="text
& data-type="date"
to type="date"
, so the browser doesn't make it a date field on load but my jquery ui datepicker is called as i am dynamically adding it as type="date"
... :)
希望对大家有帮助..