开发者

jquery masked input

开发者 https://www.devze.com 2023-02-04 00:22 出处:网络
I\'m trying to use a masked input with jquery: How can I input the different phone number 开发者_高级运维in the same textfield?

I'm trying to use a masked input with jquery:

How can I input the different phone number 开发者_高级运维in the same textfield?

eg: the first one I want to input 09-99999999 and then another one is 019-9999999 ...

How can I set the symbol "-" at the index 1 n index 2?


Better to receive the input as a number itself, and when the textbox loses focus change it to your desired format.

Check a demo

0

精彩评论

暂无评论...
验证码 换一张
取 消