-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set a start and end time in the timepicker #167
Comments
Have a look at this - this should get you on the right track |
Okay thank you. This should help - does this code work when it is only the timepicker, and it is set in 12 hr format? |
the code is generic, you'll have to adapt it to suit your needs |
@stefangabos Is there a way to add an option to the plugin called something like "enabled_am_pm"? Let me know if that's something you can add. Thank you! ~Beth |
Setting a date format to one that has AM/PM will enable those (that means using |
@stefangabos Thank you. I do have it set that way. My current format for my time fields is "H:i a". My goal is to have two input timepickers (for start and end times), and write code so that, for example, if the user selects 2:30 PM in the first input, then the second input would automatically update so that all hours before "2" are disabled (using enabled_hours), and all minutes before "30" are disabled (using enabled_minutes). However, in 12 hr. time format, there is no enabled_ampm option, and in order to make my start and end times work correctly, I need to disable the "AM" option only, in this case. Does that make more sense? Let me know if I can clarify more. |
Hi,
I am using the timepicker to replace the jQueryUI timepicker. However, I can't seem to be able to set a start time in which all times before it in the day are disabled. I wonder if you have a way to do that, and if not, could that be something added? I think it would be very useful to a lot of plugin users.
Thank you in advance!
The text was updated successfully, but these errors were encountered: