After including the jQuery script in your html <head> block, include the jquery.clockpick.js file like so: Then in your $(document).ready block, simply add the following bit of code: $("#clockpick").clockpick(); This assumes you are binding the plugin to an element with the id "clockpick". You can certainly bind the plugin to any element that makes sense for your use. |
|
ClockPick takes two optional parameters: Example: $("#clockpick").clockpick({ |
|
If you want to have the action on a different element than the time field, you would configure as below (like the "click on clock" demo). Assuming the field you wish to have filled with the time, has the name 'myfieldname': $(".clockpick").clockpick({ |
-
Notifications
You must be signed in to change notification settings - Fork 4
joshuanathanson/jquery-clockpick-timepicker-plugin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A timepicker plugin for jQuery
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published