Strip Non-numeric Characters from Phone Number with jQuery

When displaying a view, do you need to display phone numbers as links? If so, this code snippet that we use with the Developers Directory, strips all non numeric characters from a phone number.

To use this snippet, replace the jQuery selector(s) with your field id(s).

Reader Interactions

Leave a Reply

Your email address will not be published.