Profile
Achievement
xtheonex's Recent SnippetsTagged javascript
- All /
« Prev 1 Next »
A lovely little one liner that strips out all non alphanumeric chars first, then replaces the spaces with hyphens, then converts all to lowercase :D
0
660
posted 15 years ago by xtheonex
This little piece of code will convert to US phone format, as typed.
Eg, As the number "0000000000" was typed, it would convert it to (000)-000-0000.
6
3609
posted 15 years ago by xtheonex