未显示输入类型的占位符=" date"领域 [英] Not showing placeholder for input type="date" field

查看:177
本文介绍了未显示输入类型的占位符=" date"领域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Iam正在做一个phonegap应用程序,当我试图 type =date输入字段如下所示时,它显示iPhone中的日期选择器, t显示我给出的占位符。我在这里发现了同样的问题,但没有解决任何地方,希望有人可以帮助我。

Iam doing a phonegap app, when iam trying type="date" input field as shown below,, it shows date picker in iPhone as i expected but it doesn't shows the placeholder i have given. I found same issue here in SO ,but no solution anywhere, hope someone can help me. Thanks.

 <input placeholder="Date" class="textbox-n" type="date" id="date">


推荐答案

这可能不合适......但它有帮助我最后。

It may not be appropriate... but it helped me at last.

<input placeholder="Date" class="textbox-n" type="text" onfocus="(this.type='date')"  id="date"> 

这篇关于未显示输入类型的占位符=&quot; date&quot;领域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆