locked
applying input mask on phone number field RRS feed

  • Question

  • User351619809 posted

    I have an asp:button on my web page. Can I apply JQuery input mask on my asp.net button. Below is what I did:

    I installed

    Install-Package jQuery.InputMask -Version 5.0.2

    I have this on my page in Head tag:

    <script src="Scripts/inputmask/inputmask.js"></script>  

    On my web page, I have Phone number field:

    <asp:TextBox ID="txtPhonenumber" runat="server" placeholder="(XXX) XXX-XXXX"></asp:TextBox>

    I want to apply input mask of phone number on my webform if possible.

    Saturday, June 20, 2020 3:44 PM

Answers