I have a user request that a month entry (99/9999) allow the user to
input just a single-digit month (9/9999) and the page will auto-pad.

Thus if I type "1/1999" I should get "01/1999".
In general, I'm trying to use the masked input plugin all around.

I thought I'd just place a keydown event to trigger on the "/" and
modify the input value to insert the preceeding zero, and let the
plugin run as normal.  Unfortunately the plugin events maintain an
internal idea of the state of the field, so this doesn't work.

Removing and reapplying the mask wipes the existing value of the field.

I can tweak the plugin to do what I want, but now I'm running a fork.
Has anyone else dealt with this?  Am I missing an obvious way of doing
this?

-- 
Brett Ritter / SwiftOne
swift...@swiftone.org

Reply via email to