asp.net - Jquery PhoneMask - Unexpected Behavior -


i using jquery phonemasking started behave weird. able mask on textbox on focus , when start entering numbers fills in alternate positions separated _ ends 5 numbers. "(9) 8_6-_5_6". here code.

<asp:textbox id="txtphone1" runat="server" cssclass="phonemask" tooltip="phone 1" maxlength="20" validationgroup="childvalidationgroup"></asp:textbox> <input type="hidden" id="nophonemask" class="nophonemask" runat="server" value="0" />         function fncphonemasking() {         if ($('.nophonemask').val() == "0") { $('.phonemask').mask("(999) 999-999");                                            }     }   $(function () {     fncphonemasking(); }); 

can me out wrong? seems correct cannot find solution behavior.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -