Monday, 9 September 2013

Using jquery mask plugin for cellphone numbers

Using jquery mask plugin for cellphone numbers

I'm designing a form which contains some input elements. One of them is
about cellphone numbers. In my form, first digit should be between 1-9 ,
other digits could be any number. Here is my jQuery code.I need a pattern
in order to make this project work:
$(".not-empty2").mask('Z99-9999999', { translation: { 'O': { pattern:
/*an expression comes here*/, optional: true } } });

No comments:

Post a Comment