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

The jQuery ipInput.js plugin lets you create a user-friendly IPv4 address input control just like the Windows IP input.

IP-Address

Documentation

An IP Input (jQuery Plugin)

Usage

<div id="ip"></div>  <script src="jQuery.min.js"> <script src="ipInput.min.js"> <script>   $('#ip').ipInput() </script>

init

$(dom).ipInput() or $(dom).ipInput('127.0.0.1')

It will return an plugin instance

API

  • instance.getIp()

get the IP, or use $(dom).getIp()

  • instance.setIp(String)

set the IP

  • instance.validate()

judge if the IP is true or not null, or use $(dom).validate()


You May Also Like