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.

Must Read: jQuery Creates an Input Mask Plugin | Inputmask

How to make use of it

1. Download, and unzip the plugin after which insert the JavaScript jquery-input-mask-phone-number.js after the 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 textual content subject for the phone to input.

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

3. Call the function to masks and format the strings you typed in xxx-xxx-xxxx format.

$(function(){

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

});

4. Customize the format for numbers.

$(function(){

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

});

See Demo And Download

Lightweight-jQuery-Input-Mask-Plugin

Official Website(rajaramtt): Click Here

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

Related Posts

Audio-Visualizations-Wave

How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…

fireworks-js

A Simple Fireworks Animation With JavaScript | fireworks-js

fireworks-js is a JavaScript library that adds configurable fireworks animations with sound effects to your webpage. Features 🔥 Zero dependencies ⚙️ Flexible configuration 📦 Lightweight (~3.0kB gzipped)…

Side-Navigation-Menu-With-Dropdowns-jSide

[Off-Canvas] Simple and Clean Side Navigation Menu With Dropdowns | jSide Menu

JSide menu is a well-designed, simple, and clean side-scrolling menu with dropdown menus. This plugin creates a sticky hamburger button at the top of the page that…

Searchable-Select-Dropdown

A Simple Searchable Select Dropdown Plugin | jQuery Select Search

Simple jQuery search on the selection options plugin for your website. Next, there is a checkbox replacement plugin that refines and beautifies the original selection element with…

country-dropdown-with-flags

A Quick jQuery-Based Country Picker With Flags | Country Select JS

Country Select JS is a jQuery plugin to select a country, based on the international phone input plugin. Adds a flag dropdown to any input, which lists…

Autocomplete-and-Typeahead-Javascript-Library

Simple and Fast Autocomplete and Typeahead Javascript Library | autoComplete.js

autoComplete.js is a simple, pure, and incrementally designed JavaScript library for speed, high versatility, and seamless integration with a wide variety of projects and systems. Features Pure…