Date_select-like functionality for phone numbers

Hi all,

I’m trying to achieve something similar to what date_select does but
for a phone number field. Whats the best way (or can you point me to
the date_select related code) to do this?

Thanks!
Abdullah