There is a Masked Input Plugin.

$("#phone").mask("+7(999) 999-9999"); 

This sets the mask for the field where one phone number is entered. How to make it so that you can enter multiple numbers?

  • one
    make several inputs with one class and hang a plugin for the class - Alexey Shimansky
  • Introduced several numbers in one input? - br3t
  • @ br3t yes, some numbers - Player
  • 2
    $("#phone").mask("+7(999) 999-9999?,+7(999) 999-9999"); - br3t
  • one
    @ br3t what you need, thanks - Player

0