🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

IPv4 Input is a lightweight jQuery plugin that converts regular text fields into a Windows-style IP address input control.

input-mask IP-Address

Documentation

IPv4 Input

A jQuery plug-in that similar to windows IP input's style and behavior.

Installation

npm install --save jquery-ipv4-input 

or

bower install --save jquery-ipv4-input 

Usage

render input

$("div").ipv4_input(); 

get/set IP value (by string)

$("div").ipv4_input("value", "127.0.0.1");	// set IP to 127.0.0.1  $("div").ipv4_input("value");				// return "127.0.0.1" 

clear input

$("div").ipv4_input("clear"); 

check IP address complete

$("div").ipv4_input("valid");				// return bool 

responsive

$("div").ipv4_input("rwd"); 

set properties at once

$("div").ipv4_input({"rwd": true, "value": "127.0.0.1"}); 

Demo

Try it

Change log

1.0.1

  • refine responsive css

1.1.0

  • able to set responsive in script
  • able to set properties by passing an object

You May Also Like