[英]HTML Datepicker - Opened by default
I'm using an input of the type date. 我正在使用日期类型的输入。 I would like to know if there is a way to make the datepicker selection panel opened by default when the user enters in the page. 我想知道当用户进入页面时是否有一种方法可以默认打开日期选择器选择面板。
The element look like this: 元素看起来像这样:
<input class="form-control user-success" id="starting-date" name="date" required="" type="date" value="2017-04-07" data-initialized="true">
根据官方文档 ,您可以通过在div而不是输入上调用嵌入网页来显示它。
你尝试添加自动对焦吗?
<input class="form-control user-success" id="starting-date" name="date" required="" type="date" value="2017-04-07" data-initialized="true" autofocus="autofocus">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.