How do I strip any characters that are not a number out of the telephone field, including spaces. I need to have a string of numbers 0-9. No () or spaces.
i have a maskedinput for telephone (999) 999-9999
Phone Number:
<input id="phone" type="text" /> (999) 999-9999
i just need 9999999999
i am using maskedinput plugin http://digitalbush.com/projects/masked-input-plugin/