title: How can I get jquery to clear a table cell?
body: <p>My table looks like this:<img src="https://i.stack.imgur.com/c2Edj.png" alt="my table"></p>
  
  <p>How can I get jquery to remove the dropdown or clear the contents from the last cell if my first cell has a value in it? The dropdown should only appear if the first two cells are blank.</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;headings here&lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;name&lt;/td&gt;
   &lt;td&gt;id&lt;/td&gt;
   &lt;td&gt;other id&lt;/td&gt;
   &lt;td&gt;status&lt;/td&gt;
   &lt;td&gt;select location&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;name&lt;/td&gt;
   &lt;td&gt;id&lt;/td&gt;
   &lt;td&gt;other id&lt;/td&gt;
   &lt;td&gt;status&lt;/td&gt;
   &lt;td&gt;select location&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;name&lt;/td&gt;
   &lt;td&gt;id&lt;/td&gt;
   &lt;td&gt;other id&lt;/td&gt;
   &lt;td&gt;status&lt;/td&gt;
   &lt;td&gt;select location&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Got it. I needed a trim().</p>
  
  <p><a href="http://jsfiddle.net/RN5Dn/1/" rel="nofollow noreferrer">http://jsfiddle.net/RN5Dn/1/</a></p>