Show table if a SPAN exists within the first TD
<p>I need to write in either jQuery or Javascript a way of hiding a table if it doesnt contain a specific span:</p>

<p>E.g.</p>

<pre><code>&lt;table&gt;
  &lt;tr&gt;
    &lt;td class="titletext"&gt;
      &lt;span id="userID"&gt;009002&lt;/span&gt;
    &lt;/td&gt;
  &lt;tr&gt;
&lt;/table&gt;
</code></pre>

<p>So, as a poor psuedo code:</p>

<pre><code>if (td.titletext child has #userID) {
  //do nothing
} else {
  td.titletext = Display: none;
}
</code></pre>

<p>Any ideas appreciated.</p>
