title: Get the table from cell data
body: <p>So this should be pretty simple, but it seems to be making me stumble. I have a drop down in a cell in a table. When that value is changed, I call a javascript function and pass that drop down in the function. How do i get the table from that? example code:</p>
  
  <pre><code>&lt;table&gt;&lt;tr&gt;
  &lt;td&gt;DATA&lt;/td&gt;
  &lt;td&gt;&lt;select id='leadState' onChange='updateData(this)'&gt;&lt;option selected='selected' value='new'&gt;New&lt;/option&gt;&lt;option value='old'&gt;Contacted&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>javascript:</p>
  
  <pre><code>function updateData(select) {
      var table = select.parentNode.parentNode.parentNode;
      var row = select.parentNode.parentNode;
      var cell = select.parentNode;
  }
  </code></pre>
  
  <p>Why does this not return the table properly?</p>