Profile
Achievement
![first submission:submitting first snipplet first submission:submitting first snipplet](/img/badge/badge_2.png?v3)
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
607
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
3492
posted 15 years ago by xtheonex