Is there any way to disable day and time in jQuery datetimepicker? I want to disable a particular time on a particular day(Not the whole day).

有没有办法在jQuery datetimepicker中禁用日期和时间?我想禁用某一天的特定时间(不是一整天)。

1 个解决方案

#1


0

Harpreet:

There is an option to enable or disable specific times, called allowTimes:

可以选择启用或禁用特定时间,称为allowTimes:

Example:

jQuery('#datetimepicker5').datetimepicker({
 datepicker:false,
 allowTimes:[
  '12:00', '13:00', '15:00', 
  '17:00', '17:05', '17:20', '19:00', '20:00'
 ]
});

Reference: http://xdsoft.net/jqplugins/datetimepicker/#allowTimes

Hope this helps!

希望这可以帮助!

更多相关文章

  1. 根据用户时区显示当地时间 php+javascript
  2. JavaScript动态显示时间
  3. Day.js :一个轻量的处理时间和日期的 JavaScript 库
  4. 【第三篇】说说javascript处理时间戳
  5. 具有iOS Swift请求时间输出的Express.js服务器
  6. 如何获得mp3文件的大小和持续时间?
  7. 获取当前时间getDate()注意点
  8. 返回指定时间段相同间隔数组
  9. 等待执行所有ajax回调的最佳解决方案

随机推荐

  1. Linux Kernel and Android 休眠与唤醒(中
  2. android之发送短信的方法研究
  3. Java/Android中的PBKDF2加密认证
  4. [API GUIDE 学习笔记]android MediaPlaye
  5. android源码2.3.7开发环境与编译实战(ubu
  6. android(6) 扇形菜单实现
  7. fragment保存页面不销毁
  8. 基于第三方开发Android锁屏
  9. 错误”. lang。当使用带有ViewPager的选
  10. Android输入法框的梳理