Josh,

>Actually, there currently isn't a programmatic way to set the value
>and have it be masked automagically for the developer.  I just wanted
>to see if I could hook into existing methods to keep from having to
>add too much syntax.  It's driven off of focus,blur,keypress and
>pasting(on certain browsers).  I guess if a developer wants to mask
>their val they could call .val("something").blur() and everything
>would work out like I'm describing, it's just not as terse. :)
>
>Thanks for input.

What I'd do then, is to add a method like $.maskedVal() which calls the
internal val() and then runs whatever internal code of your that needs to
run to correctly format the input.

That way the developer just calls your special function to update the masked
value...

-Dan

Reply via email to