jquery form validation plugin need help?
<pre><code>    &lt;/tr&gt;
for ($i = 0; $i &lt; $dm_numrec; $i++) {
?&gt;
         &lt;tr&gt;
           &lt;td width="266" height="28" valign="top"&gt;
             &lt;input type="text" name="recommend_to_name&lt;?php echo $i;?&gt;" /&gt;
           &lt;/td&gt;
           &lt;td height="28" valign="top"&gt;
             &lt;input type="text" name="recommend_to_email&lt;?php echo $i;?&gt; /&gt;" 
           &lt;/td&gt;
         &lt;/tr&gt;
</code></pre>

<p>I used jquery form validation plugin 
<a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow">http://bassistance.de/jquery-plugins/jquery-plugin-validation/</a> </p>

<pre><code>&lt;script src="jquery.min.js"&gt;&lt;/script&gt;

&lt;script src="jquery.validate.min.js"&gt;&lt;/script&gt;

        &lt;script&gt;
            $(document).ready(function(){           
                $('#recommend').validate({
                    'rules':{
                        'recommend_to_name':'required',
                        'recommend_to_email':{
                            'required':true,
                            'email':true
                        },              
                    }
                });

            });

        &lt;/script&gt;   
</code></pre>

<p>How can I validate for the recommend_to_name that its name is a dynamic string from loop:</p>

<p>recommend_to_name0</p>

<p>recommend_to_name1</p>

<p>recommend_to_name2</p>

<p>recommend_to_name..</p>
