JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
PH.
Sep 10, 2012 02:07
0
Q: How to dynamically set a input mask using JQuery based on user entry data?

PH.If user entry 10 digits my field should mask (99) 9999-9999. But if user entry another digit (11 digits) it should mask (99) 99999-9999. I would like to change the mask while my user is filling the field. Is it possible?

 

 jQuery

This room is often empty cept rlemon. he's always here.
PH.
Sep 10, 2012 02:06
0
Q: How to dynamically set a input mask using JQuery based on user entry data?

PH.If user entry 10 digits my field should mask (99) 9999-9999. But if user entry another digit (11 digits) it should mask (99) 99999-9999. I would like to change the mask while my user is filling the field. Is it possible?