我的 html 页面中有这样的表格
<table id="mytable">
  <tr id="classified">
    <td>1</td>
  </tr>
  <tr id="unclassified">
    <td>0</td>
  </tr>    
</table>
所以,在 document.ready 我想检查哪一列的值为 0,如果值为 o,则隐藏该行,
我已经写了这段代码,但似乎没有用
$(document).ready(function IsValidTableContent() {
    $('#mytable tr td').each(function () {
        if ($(this).val() == 0) {
            $(this).hide();
        } else {
            $(this).show();
        }
    });
});