jQuery time picker [closed]

2019-01-16 02:10发布

I'm looking to fill a text input with a time that the user can choose in 15 minute intervals. I know there are a few plugins out there. I was wondering if there was any “industry standard” plugin, or strong objective reasons to prefer a particular one in common scenarios.

16条回答
Melony?
2楼-- · 2019-01-16 02:47

I found this plugin (github repository) trumps the other one mentioned. It mimics Google Calendar's timepicker.

查看更多
霸刀☆藐视天下
3楼-- · 2019-01-16 02:49

I think every answer, except Kev's, is subjective. I've seen tenths of time-picker JQuery plug-ins on the net, and most were useless time consuming gimmicks, but if you already use the standard Jquery datepicker then this plug-in would be appropriate.

查看更多
叼着烟拽天下
4楼-- · 2019-01-16 02:51

My advice would be not to do this. I find it bad enough being forced to use a calendar control just to enter a date, especially when not given the option to type a date which I can do way quicker than navigating yet another wacky control.

Time pickers just take this kind of UI fetish to a new extreme. Why not allow your users to either type the time or just use a couple of drop down boxes for hours and mins. Even drop down lists allow a user to just type the time. The time picker in Shog9's answer is all very nice to look at but is incredibly fiddly to use. If I was an end user having to use a data entry app and it had a control like that on the page then it's only going to slow me down and make me want to come and cut off the developers hands. :)

Think about usability first before how slick the app looks.

Just my humble opinion.

查看更多
我只想做你的唯一
5楼-- · 2019-01-16 02:51
登录 后发表回答