Insert space after certain character into javascript string

前端 未结 2 1475
一向
一向 2020-12-04 01:29

I\'m working on a form and I\'d like to mask the input of the phone numbers. The plugins what I found aren\'t okay for me since the area code could be 1 or 2 character long.

2条回答
  •  温柔的废话
    2020-12-04 02:00

    Have you tried the maskedInput plugin?

    http://digitalbush.com/projects/masked-input-plugin/

    I think it can solve your problem.

    Hope this helps. Cheers

提交回复
热议问题