It's very Simple to use Jquery IPV4 input text controller! you should just like this
This project could be used in all kind of web projects; such as .NET, PHP, JSP, RUBY, ...
<link href="css/ipv4.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="js/min/jquery.input-ipv4-address-control-1.0.en.min.js"></script>
<input type="text" name="my_ip" class="IPV4">