jQtp
2012
May 05
May 05
|
DOWNLOAD jQuery Time Picker v0.1 LICENSE jQac is distributed under the terms of the MIT license |
DEMONSTRATION
Start Time: End Time:
NEWS
- 2009/05/23 jQTP v0.1 released.
DESCRIPTION
- Simple javascript Real Time Analog Clock.
- Simple Click to change the time.
- Easy to integate to your application.
- Easy to customize the look & feel.
- jQTP tested with IE6, IE7, IE8, FF3, Safari4, Google Chrome2.
- Lightweight time picker – The source file is just 5k!
- Free and Free of charge under the MIT License.
DOCUMENTATION
To initialize the jQTP
- <script type=”text/javascript”>
- $(document).ready(function() {
- //initialize time picker object
- $(“#jqtp_clock”).jqtp();
- //if you don’t want to use real time function, use this function to reset the current time
- $(“#jqtp_clock”).jqtp_reset();
- //if you want the analog clock to be real time, call this function
- $(“#jqtp_clock”).jqtp_realtime();
- });
- </script>
To pick time from a popup dialog box
- //The original html element
- <input type=”text” id=”appointment_start” size=”8″/>
- //Here are the scripts you have to call when click the “Pick Time” button
- <script type=”text/javascript”>
- $(“#picktime”).click(function () {
- $(“#appointment_start”).jqtp_object();
- $(“#jqtp_clock”).jqtp_getTime();
- });
- </script>