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.
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.
2 |
$( '#ipinput' ).IpInput(); |
3. Specify the color of the IP address when valid/invalid.
2 |
$( '#ipinput' ).IpInput({ |