将时间选择器更改为每15分钟一次

时间:2017-03-25 14:35:21

标签: javascript jquery

enter image description here

我想将分钟差异从5分钟改为15分钟,所以它应该像00 15 30而不是00 05 10 请看图像..使用js .timepicker为它

 $(time_input).timepicker
  showCloseButton: true
  showPeriod: true
  showleadingZero: false

如下所示..默认时间选择器

enter link description here

1 个答案:

答案 0 :(得分:0)

$(time_input).timepicker({
  showCloseButton: true,
  minutes: {    
   interval: 15              // Interval of displayed minutes
  },
  showPeriod: true,
  showleadingZero: false
});
相关问题