validate ip address input - Free Download Validate IP Address In Input Field - jQuery IpInput

Free Download Validate IP Address In Input Field – jQuery IpInput

Posted on

This time I will share jQuery Plugin and tutorial about Validate IP Address In Input Field – jQuery IpInput, hope it will help you in programming stack.

validate ip address input - Free Download Validate IP Address In Input Field - jQuery IpInput
File Size: 15.2 KB
Views Total: 141
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

IpInput is a tiny jQuery IP address validation plugin that can be used to check if a given IP v4 address (or an IP address range) is valid on submit.

See Also:

How to use it:

1. Load jQuery library (slim build is recommended) and the IpInput plugin in the HTML file.

1 <script src="/path/to/cdn/jquery.slim.min.js"></script>
2 <script src="/path/to/jquery.IpInput.js"></script>

2. Attach the plugin to your IP input and done.

1 <input id="ipinput" />
1 $(function(){
2   $('#ipinput').IpInput();
3 });

3. Specify the color of the IP address when valid/invalid.

1 $(function(){
2   $('#ipinput').IpInput({
3     ColorTrue: "black",
4     ColorFalse: "red"
5   });
6 });