jTimepicker (AM/PM and more)

by kkikta 17. February 2010 17:50

For what ever reason there seem to be hundreds of calendar tools for web form entry and only a hand full of ones for time. Most of time ones are either confusing, not helpful or more work than typing it in your self. So i went searching since jQuery is my new favorite tool and I found this is a pretty cool jquery time picker (widget/gadget what ever you call it) http://www.radoslavdimov.com/jquery-plugins/jquery-plugin-timepicker/#Examples. Its quite functional but I quickly found it has some missing features. First if your using 12 hour (most people understand it better so pretty much a required feature) there is no way to pick AM/PM. Second drop downs are nice but I like text boxes better. Anyway below is my take on adding these features.

jquery.jtimepicker.debug.js (10.39 kb)
jquery.timepicker.css (1.47 kb)


To use the textbox type you will need tie it to a textbox instead of a div and set:
 selectType: false

Tags:

General | JavaScript

Comments (2) -

seyt0n
seyt0n
4/7/2010 2:06:38 PM #

I've tried everything in my power to get this working in my favour.
I love the idea that it uses a text box instead

But after much rough trial and error im still stumped as to how you get it working. I keep getting an error saying "out of memory" and the problem seems to happen in the main jQuery library. Im not sure what's going on as i'm not a Javascript expert

Reply

I do remember seeing that before but using the sample above should work. Do you have a copy of the code where I can see it?

Reply

Add comment



  Country flag
biuquote
  • Comment
  • Preview
Loading


Month List

Page List