Possible Duplicate:
Validate IP address is not 0.0.0.0 or multicast address
javascript regular expression to check for IP addresses
I need to perform IP Address validation that should accept 0-255 number range and dots.
I am trying with this code:
<script type='text/javascript'>
   function checkValid(eleValue) {
      if(!eleValue.match(/^[0-9]+\.?[0-9]*$/))
      {
         alert('Please enter Only Number or Dot');
      } 
   }
</script>
<input type="text" onkeyup='javascript:checkValid(this.value);' />
But its not working for me..
 
     
    