我的 Android jQuery 移动应用程序中有以下时间输入,我想为此输入创建一个时间选择器作为 android 设备中的本机时间选择器。如何在 jQuery mobile 1.4.0 中进行时间选择器?
请帮我 ...
<label for="notifTime" data-inline="true">
<input type="time" name="notifTime" id="notifTime" />
我的 Android jQuery 移动应用程序中有以下时间输入,我想为此输入创建一个时间选择器作为 android 设备中的本机时间选择器。如何在 jQuery mobile 1.4.0 中进行时间选择器?
请帮我 ...
<label for="notifTime" data-inline="true">
<input type="time" name="notifTime" id="notifTime" />
您是否尝试过 jQuery Mobile Datebox 插件:http ://dev.jtsage.com/DateBox/ ?
它有一个时间选择器模式,只要您只需要几小时和几分钟就可以了。
这是一个演示
<div class="ui-field-contain">
<label for="notifTime">Notification Time:</label>
<input name="notifTime" id="notifTime" type="text" data-role="datebox" data-options='{"mode":"timebox", "useNewStyle":true, "overrideTimeFormat": 12, "themeButton": "b", "themeInput": "a", "theme": "b", "themeHeader": "b"}' />
</div>
如果您查看 datebox 网站,有很多选择可以玩......