Greetings,
I have a few masked inputs for phone numbers using the mask “## ## ## ## ##” (french way of displaying phone numbers).
I would like to retrieve the value of the input without the mask. For instance, if my input shows “03 8_ __ __ __”, I would like to get either “03 8” or “038”.
What’s the best way to approach this ? Am I supposed to use $('#phoneNumber').jqxMaskedInput('inputValue');
(which returns 038_______
) and then remove the remaining _
, or is there a better way to do this ?
Seems odd there doesn’t seem to be a proper way to do this since you can set the value property without the _
when creating the masked input (i.e. value:"038"
).
Thanks in advance,
Coloco