this question has already been asked but the solutions where not clear.
Im using Josh Bush\'s MaskedInput plugin for jQuery
What im trying to achieve is:
Set removeMaskOnSubmit as true when you initialize the inputmask
$("#txtPhone").inputmask({removeMaskOnSubmit: true});