Recommended jquery widget for time entry?

我与影子孤独终老i 提交于 2019-12-23 21:14:01

问题


I have a need for a time entry widget for lengths of time but it needs to support > 24 hours entry i.e. not be constrained to a maximum of 23:59.

I want to be able to enter values up to 99:59 - i.e. 99 hours, 59 minutes.

I've seen and used jquery.timeentry.js which is excellent, but is based on a Date object which won't handle my requirements.

Are there any jquery plugins which would handle my requirements?


回答1:


You can give a try to http://trentrichardson.com/examples/timepicker/.

See the Set the time range example.

I set an example for you at jsfiddle. You can adjust the hourMax and hourMin values to fit your requirements. For a complete reference of the timepicker options see the link above.




回答2:


If it's for usage on a touch device, like a smartphone or tablet, take a look at the Mobiscroll Timespan

It is a wheel-type scrollable control, with multiple wheels.



来源:https://stackoverflow.com/questions/7084800/recommended-jquery-widget-for-time-entry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!