jQuery - count number of characters in a input field excluding spaces
I have a jsfiddle here - https://jsfiddle.net/3e91ropp/
I simple need a way to count the number of characters in an input field excluding spaces.
I need to validate a phone number field to have at least 10 numbers.
I can use the length property but that counts spaces which I don’t want to do
You could remove the spaces using the