alternate row table in jquery
<p>How to create below mentioned table structure in jquery/javascript:</p>

<pre><code>  &lt;table&gt;
    &lt;tr&gt;
        &lt;td&gt;
            one
        &lt;/td&gt;
        &lt;td&gt;
            two
        &lt;/td&gt;
        &lt;td&gt;
            three
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
           single
        &lt;/td&gt;

    &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;
            one
        &lt;/td&gt;
        &lt;td&gt;
            two
        &lt;/td&gt;
        &lt;td&gt;
            three
        &lt;/td&gt;
    &lt;/tr&gt;
     &lt;tr&gt;
        &lt;td&gt;
           single
        &lt;/td&gt;

    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>i.e. alternate row is having 3/ 1 cols.</p>
