我试图在日期框中选择当前日期,它在chrome中工作,但在firefox中不工作,请帮助我


im trying to select current date in date box it work in chrome but not work in firefox help me

im试图在日期框中选择当前日期,它在chrome中工作,但在firefox中不工作帮助我

<html>
    Select Date <input type="date" name="det"  >
</html> 

firefox还不支持此输入。它显示一个普通的文本框。

在这里查找解决方法:)如何使HTML 5输入type="date"在Firefox和/或IE 10 中工作

这是因为firefox还不支持它!参见CanIUse:

http://www.caniuse.com/#search=date

替代您可以使用JQuery DatePicker参见:

(你可以在网站上测试它,看看它在firefox中是否有效)

http://jqueryui.com/datepicker/

相关文章: