Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 665 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 665 Bytes

jquery.ipmask

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/

  1. link jquery
  2. link lib
  3. add input field
  4. 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>