8000 GitHub - gimmymatt/ipv4_input: A jQuery plug-in for IP input that behave like windows IP input
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gimmymatt/ipv4_input

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A jQuery plug-in for IP input that behave like windows IP input

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 67.8%
  • HTML 21.0%
  • CSS 11.2%
0