Validation in jquery ,
<pre><code>&lt;div id="default-box"&gt;
    &lt;span class="add"&gt;&lt;input type="text" class="name" /&gt;&lt;input type="text"  class="email"/&gt;&lt;/span&gt;
    &lt;span class="add"&gt;&lt;input type="text" class="name" /&gt;&lt;input type="text"  class="email"/&gt;&lt;/span&gt;
    &lt;span class="add"&gt;&lt;input type="text" class="name" /&gt;&lt;input type="text"  class="email"/&gt;&lt;/span&gt;
</code></pre>

<p>
There is a button to submit.</p>

<pre><code>validation:
</code></pre>

<p><code>1.</code> On these three row if any row is filled it is OK, if all three row is empty then it is invalid.</p>

<p><code>2.</code> While writing emails if it is wrong it validates on loosing focus.</p>
