简体   繁体   English

我应该可以在typo3中更改powermail表单的日期选择器的占位符吗?

[英]should i can change the placeholder of datepicker of powermail form in typo3?

I am new to typo3 and I created a simple contact form using powermail and I took a date picker of powermail.我是typo3的新手,我使用powermail创建了一个简单的联系表格,并使用了powermail的日期选择器。 In that, the default placeholder is dd/mm/yyyy.其中,默认占位符是 dd/mm/yyyy。 But I want a different placeholder.但我想要一个不同的占位符。 So how I can do that?那么我该怎么做呢?

A placeholder can not be shown in a HTML field of type date.占位符不能显示在日期类型的 HTML 字段中。 The browser (depending on your OS and country settings) will show a placeholder with a format to help you to fill out the date field.浏览器(取决于您的操作系统和国家/地区设置)将显示一个占位符,其格式可帮助您填写日期字段。 If you really need a different placeholder, you could take some JavaScript to switch the type of the field from text to date on focus (or similar stuff).如果你真的需要一个不同的占位符,你可以使用一些 JavaScript 将字段的类型从文本切换到焦点上的日期(或类似的东西)。 But this seems to be very "hacky" in my eyes.但这在我看来似乎非常“hacky”。

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

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