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
精彩评论