简体   繁体   English

使用相同的格式<input type=“date”>

[英]Use same format as <input type=“date”>

I have 2 inputs in my page, one that is type text, and one that is type date.我的页面中有 2 个输入,一个是输入文本,一个是输入日期。 The input type date as a specific format (the date shown on the input, not the value in the code).输入类型日期作为特定格式(输入上显示的日期,而不是代码中的值)。 I want to use that same format for my input type text across all browsers and all OS.我想在所有浏览器和所有操作系统中为我的输入类型文本使用相同的格式。 Is there a way I can do this?有没有办法做到这一点?

You can use Jquery Mask plugin to do that.您可以使用 Jquery Mask 插件来做到这一点。

https://igorescobar.github.io/jQuery-Mask-Plugin/ https://igorescobar.github.io/jQuery-Mask-Plugin/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM