validate comma separated url in jquery
<p>I want to validate url with comma seperation. I have written following code but it does not execute peoperly.</p>

<pre><code>jQuery.validator.addMethod("multireview", function (value, element) {
    if (this.optional(element)) {
        return true;
    }
    var multiurl = value.split(','),
        valid = true;

    for (var i = 0, limit = multiurl.length; i &lt; limit; i++) {
        value = multiurl[i];
        valid = valid &amp;&amp; jQuery.validator.methods.url.call(this, value, element);
    }
        return valid;
    }, "Invalid review format: please use a comma to separate multiple website reviews.");
</code></pre>

<p>If anybody have any solution please suggest me.</p>

<p>Thanks</p>
