How to validate broadcast IP address (from 224.0.0.0 to 239.255.255.255)
<p>I want to validate broadcast and multicast IP address.
This is the two ip i am using 255.255.255.0 or 229.0.0.20.</p>

<pre><code>['validate-mcast-ip', 'Please enter a valid multicast ip in this field.', function (v) {
  if (v == "") return true;
  if (v == "0.0.0.0") return false;

  ipPattern = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;
  ipArray = v.split(".");
  isIP = ipPattern.test(v);
  if (isNaN(ipArray[0]) || ipArray[0] &lt; 224 || ipArray[0] &gt; 239) {
    isIP = false;
  }
  for (i = 1; i &lt; ipArray.length; i++) {
    if (isNaN(ipArray[i]) || ipArray[i] &gt; 255) {
      isIP = false;
    }
  }
  return isIP;
}],
</code></pre>

<p>I want to throw an alert while entering multicast IP and broadcast IP.</p>
