php - PHP中的时间选择器

标签 php javascript

请帮我解决有关 php 时间的问题。我想为一个在不同时间提供服务的网站进行时间选择。我想让它像一个日期选择器日历。我还没有找到任何东西。我可以在下拉框中制作,但显示 60 分钟的下拉菜单看起来相当难看。请帮我解决这个问题。

最佳答案

好吧,我不建议你从头开始制作。相反,您可以免费使用可用的 jquery 插件:)。我推荐的其中一些是

1) 完整日历

FullCalendar is a famous jQuery calendar plugin which offers features like drag-and-drop, integration with Google Calendar and able to fetch events through JSON. Designers can easily customize the look and feel of the calendar, while developers can utilize the exposed hooks for user-triggered events.

Website: http://arshaw.com/fullcalendar/

2) jQuery 交互式日期范围选择器

This powerful date range picker is a modified version of jQuery UI’s Datepicker component. It has a quicker date selection from a list of preset dates/ranges and a smooth transitions. The latest version uses the jQuery UI 1.7 and jQuery UI CSS Framework. With the power of jQuery UI, user can now switch the calendar theme easily.

关于php - PHP中的时间选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5362441/

相关文章:

javascript - 单击按钮时隐藏/显示隐藏的 div

javascript - Vue Tables 2自定义过滤器不起作用

javascript - 在工厂设置数据并将其绑定(bind)到 Controller

php - 在 htaccess 文件中为 SSL 连接重写链接

php - 在 MySQL 表中搜索逗号分隔的区号

php - 在 Facebook 点赞后显示内容

php - 为服务器子域/子文件夹上的不同 PHP 应用程序连接/组合 MySQL 数据库中的多个用户表

php - Symfony - 扩展已注册

javascript - 在表格中的 div 上叠加图像

当我向其参数列表提供字符串时,JavaScript 事件处理函数不起作用