I am building a form to accept a time value HH:MM, how can I filter the user input and show the colon in the text field? I guess I'm looking for some kind of filtered input box.
Thanks
I am building a form to accept a time value HH:MM, how can I filter the user input and show the colon in the text field? I guess I'm looking for some kind of filtered input box.
Thanks
Thats commonly referred to as an Input Mask, do some googling on it. Edit: There appears to be an input mask jquery plugin
Whilst the TimePickr plugin recommended by Jonathon is very nice to look at, if the user is doing any volume of data entry, it's going to drive them mad. I answered a similar question a while back explaining why:
A masked input box and a bit of javascript validation may be a more optimal solution.
Have you ever use JqueryMasked Input Plugin