Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Christophe Rudyj
Christophe Rudyj
Full Stack JavaScript Techdegree Student 13,011 Points


I don't know actually how to call it but I'm making a wordpress plugin and i need a way so that when the user input his phone number with extension it automatical formats it the right way

example : 5555 would change to (555)5 and 55555555555555 would become (555)555-5555 # 5555

I vaguely remember a jquery plugin but i forgot which one

3 Answers

Try this. Less than 20 lines of jQuery :)