finding the td with 0 value
<p>i have a table like this in my html page</p>

<pre><code>&lt;table id="mytable"&gt;
  &lt;tr id="classified"&gt;
    &lt;td&gt;1&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr id="unclassified"&gt;
    &lt;td&gt;0&lt;/td&gt;
  &lt;/tr&gt;    
&lt;/table&gt;
</code></pre>

<p>so, on the document.ready i want to check which column has 0 value, if value is o then hide that row,</p>

<p>i have written this code but doesnt seem to work</p>

<pre><code>$(document).ready(function IsValidTableContent() {
    $('#mytable tr td').each(function () {
        if ($(this).val() == 0) {
            $(this).hide();
        } else {
            $(this).show();
        }
    });
});
</code></pre>
