title: jQuery select closest tr with specified class
body: <p>I have a list of items inside a table. I have decided to change the table structure a bit so that things look more organized, and added some more <code>&lt;tr&gt;</code>'s in.
  What happened is that my jQuery code doesn't work well anymore.</p>
  
  <p>I have that piece of code:</p>
  
  <pre><code>$(':input:not(.ajax-confirmed)').each(function(m,r){
      var $row = $(r).closest('tr');
      $row.remove();
  });
  </code></pre>
  
  <p>I would simply like to select the closest <code>&lt;tr&gt;</code> and signify it with an additional parameter, I thought maybe a class, so that I know what kind of <code>&lt;tr&gt;</code> I am removing.</p>
  
  <p>How can I select the closest tr with a specific class name?</p>