title: how to remove all elements from a table row except first th
body: <p>I have a table row like this</p>
  
  <p>This row is generated using a for loop in jquery ,there can be more than 1 row .I want to remove all elements except first of each row ,I have tried like this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>for (var i = 0; i &lt; o.result[0].length; i++) {
    //$("#fullSelection"+i).empty(); //its working
    //$("#fullSelection"+i).not(':first').remove();//not working
    $("#fullSelection" + i).slice(1).remove(); //not working
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;tr id='fullSelection0' style='display: table-row;'&gt;
    &lt;th class='predict'&gt;
  
    &lt;/th&gt;
    &lt;td&gt;
    &lt;/td&gt;
    &lt;td&gt;
    &lt;/td&gt;
    &lt;td&gt;
    &lt;/td&gt;
  &lt;/tr&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any idea how to achieve it??</p>