jquery dynamic validation of fields
<p>I have two fields reference link and reference text that are added dynamically in the jquery modal dialog. the dialog is displayed when I click on add user. We can dynamically add and delete the reference text and link fields. </p>

<p>I acheived it using the following code</p>

<pre><code>var $ctrl = $('&lt;div id="refHolder'+i+'"&gt;'+  
            '&lt;div class="form-row" style="padding-right: 10px;"&gt;        '+              
            '&lt;div class="form-label" style="width: 180px;"&gt;'+
                '&lt;label for="text"&gt;Reference Text '+labelCount+' &lt;/label&gt;'+
            '&lt;/div&gt;'+
            '&lt;div&gt;'+
                '&lt;input id="links'+i+'text" class="w300" type="text" name="links'+i+'text" size="45" /&gt;'+
                '&lt;a href="#" id="delRef'+i+'" style="float: right; border: none; color: #fff;" onClick="removeFormField('+i+'); return false;"&gt;&lt;img src="./resources/images/delete.gif"&gt;&lt;/a&gt;'+
            '&lt;/div&gt; '+              
        '&lt;/div&gt;'+
        '&lt;div class="form-row"&gt; '+              
            '&lt;div class="form-label" style="width: 180px;"&gt;'+
                '&lt;label for="link"&gt;Reference Link '+labelCount+'&lt;/label&gt;'+
            '&lt;/div&gt;'+
            '&lt;div&gt;'+
                '&lt;input id="links'+i+'link"  class="url w300" type="text" name="links'+i+'link" size="45" /&gt;'+
            '&lt;/div&gt;'+           
        '&lt;/div&gt;'+
    '&lt;/div&gt;');
    $("#referenceMain").append($ctrl);
    $('#hdnRefLinksCount').val(i+1);});
</code></pre>

<p>Now i have to validate the link field to check if it is a valid URL. I ve checked it using validation plugin. Now how to display specific error message for each link. eg: reference link 1 should be a valid url, reference link 2 should be a valid url.. etc.</p>
