Consider a non-DOM scenario where you\'d want to remove all non-numeric characters from a string using JavaScript/ECMAScript. Any characters that are in range 0 - 9
0 - 9
Use a regular expression, if your script implementation supports them. Something like:
myString.replace(/[^0-9]/g, '');