如何一起使用JQuery datepicker和timepicker [英] How to use JQuery datepicker and timepicker together

查看:86
本文介绍了如何一起使用JQuery datepicker和timepicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一起实现JQuery Datepicker和Time picker。我下载了这个插件。
我使用这个JS来配置它:

I want to implement JQuery Datepicker and Time picker together. I downloaded the plugin. And I use this JS to configure it:

<script type="text/javascript" src="resources/js/timepicker-addon.js"></script>
....
                       <script type="text/javascript">
                            //For calendar
                            $(".datepicker").datepicker({
                                inline: true,
                                showWeek: true,
                                firstDay: 1,
                                dateFormat: 'dd-MM-yy',
                                timeFormat: 'h:m',
                            separator: ' @ '
                            });                            
                        </script>

但是当我打开JSF页面时,我看到简单的日历。你能帮我实现时间戳吗?

But when I open the JSF page I see simple calendar. Can you help me to implement the timepicker?

推荐答案

你可以使用本文推荐的内容: http://trentrichardson.com/examples/timepicker/

You can use what this article recommends: http://trentrichardson.com/examples/timepicker/

使用后它,您将看到以下内容:

After using it, the following will be what you will see:

这篇关于如何一起使用JQuery datepicker和timepicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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