title: How to check TR is hidden or has class 'display:none' from TD's a's i's id
body: <p>I have a very weird situation where I have assigned attribute <code>id</code> to the TD  . From this <code>id</code> I want to check whether TR id <code>hidden</code> or <code>visible</code>.</p>
  
  <pre><code>&lt;table id="tableID" class="tableClass"&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;th width="3px"&gt;Header1&lt;/th&gt;
          &lt;th align="left"&gt;Header2&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr align="left"&gt;
          &lt;td&gt;Data1&lt;/td&gt;
          &lt;td&gt;&lt;a &lt;i id="1"&gt;&gt;&lt;/i&gt;&lt;/a&gt;Data2&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have tried this</p>
  
  <p><code>document.getElementById(id).parentNode.parentNode.parentNode.hidden</code> but its giving <code>false</code> all time even if it hidden by using <code>hide()</code>.</p>
  
  <p><strong>Console:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/BVDBV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BVDBV.png" alt="enter image description here"></a></p>