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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -