views:

15

answers:

0

I am using the jQuery meioMask plug-in in order to mask input fields with various different masks (such as "999-999-999")

Before I save the resulting value of the field, I need to revert back to the unformatted version of the input (so in the above example we would want to store the value "123456789", not "123-456-789".

Is there any way that I can obtain the unformatted string for a masked field without needing to write my own "de-formatting" function for each mask?

If there is an alternative masking plugin that helps solve this problem then I'm not completely against switching to a different plugin.