Utility that allows you to enter only the characters that match the format ip.v4
example of the use: http://jsfiddle.net/mavDev/DhNfN/2/
- link jquery
- link lib
- add input field
- init filter
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<meta http-equiv='pragma' content='no-cache'>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.ipmask.js"></script>
<input type="text" name="" id="testip"/>
<script type="text/javascript">
$('#testip').ipmask();
</script>
</body>
</html>