Make a user input phone number display as (xxx) xxx-xxxx on entry.

Hey Steve,

This code is awesome! It works perfectly for an “onChange” event! I was wondering, however, is there any chance you might know how to make it work for “onKeypress”? I can’t get it so that it replaces the values to the (XXX) XXX-XXXX format as the user types. Any thoughts?

Thanks,
Anney