Remove column from variable before adding to table
<pre><code>$newRow = $('&lt;tr&gt;').append($('#active_participant'+participant_row)
    .clone()).remove().html();                          
$($newRow).find('td[name="state"]').remove();
</code></pre>

<p>I have this code. The <code>$newRow =</code> line works fine. But the second line doesn't.</p>

<p>What I want to do is find a row in a table(first line above. OK). I then want to remove the <code>td</code> state from <code>$newRow</code> before adding <code>$newRow</code> to another table.</p>

<p>What am I doing wrong?</p>
