Press "Enter" to skip to content

Simple and Easy jQuery Input Mask Plugin | InputMask-Phone-Numbers

jquery-input-mask-phone-number.js – Simple and easy jquery phone number mask library. JQuery Plugin for masks input field to US phone format.

How to make use of it

1. Download, unzip the plugin after which insert the JavaScript jquery-input-mask-phone-number.js after jQuery JavaScript library.

<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/jquery-input-mask-phone-number.js"></script>

2. Create a traditional textual content subject for the phone to enter.

<input type="text" id="yourphone">

3. Call the operate on the enter subject to masks and format the strings you typed in xxx-xxx-xxxx format.

$(function(){

  $('#yourphone').usPhoneFormat();

});

4. Customize the format for cellphone numbers.

$(function(){

  $('#yourphone').usPhoneFormat({
    format: '(xxx) xxx-xxxx'
  });

});

jQuery Input Mask Demo, jQuery Input Mask Numeric, Lightweight jQuery Input Mask


See Demo And Download

Official Website(rajaramtt): Click Here

This superior jQuery/javascript plugin is developed by rajaramtt. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.