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
445
posted 14 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
3115
posted 14 years ago by xtheonex