title: jQuery select button from the closest <td>
body: <p>I have a table like this:</p>
  
  <pre><code>&lt;div id="somehting"&gt;
   &lt;table&gt;
      &lt;tr&gt;
         &lt;td&gt;
           &lt;button id="example"&gt;...&lt;/button&gt;
         &lt;/td&gt;
         &lt;td&gt;
           &lt;input type="text" class="text"/&gt;
         &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to get the button enabled/disabled when I have a keydown-event in the inputfield. To do so I put following listeners to the code:</p>
  
  <pre><code>$('#something').on('keydown', ".text", function(){   
     $(this).closest("td").find('#example').removeAttr('disabled');
  });
  </code></pre>
  
  <p>But it does not work. How do I select the button in the td before the td of the inputfield?</p>