title: Table row parents() not working
body: <p>I have here nested table and delete animation. The <code>class="record"</code> delete perfectly but the <code>class="nested"</code> is not working. When I delete the record <code>class="record"</code> I also want to delete the <code>class="nested"</code> nested records. But why it's not working?</p>
  
  <p>Here's my output. When I delete the counter 000007 the nested table should have delete animation also, but the record of 000007 only.</p>
  
  <p><img src="https://i.stack.imgur.com/9Ww3P.jpg" alt="enter image description here"></p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;table id="tfhover"&gt;
  
  &lt;thead&gt;
  &lt;tr&gt;
  &lt;th&gt;&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;
  
  &lt;tbody&gt;
  
  &lt;tr class="record"&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  // Nested Table
  
  &lt;tr&gt;
  &lt;td&gt;
  &lt;table id="loginTable"&gt;
  &lt;thead&gt;
          &lt;tr class="nested"&gt;
          &lt;th&gt;&lt;/th&gt;
          &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
  
  &lt;tr class="nested"&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;/tbody&gt;&lt;/table&gt; // Nested table Close
  
  &lt;/td&gt;&lt;/tr&gt; // Nested table tr td Close
  
  &lt;/tbody&gt;&lt;/table&gt; // Main table Close
  </code></pre>
  
  <p><strong>FULL Delete Script</strong></p>
  
  <pre><code>&lt;script&gt;
  $(function() {
  $(".delbutton").click(function(){
  //Save the link in a variable called element
  var element = $(this);
  //Find the id of the link that was clicked
  var del_id = element.attr("name");
  //Built a url to send
  var info = 'name=' + del_id;
   if(confirm("Sure you want to delete this update? There is NO undo!"))
            {
   $.ajax({
     type: "GET",
     url: "delete.php",
     data: info,
     success: function(){
     }
   });
  
      $(this).parents(".record").animate({ backgroundColor: "#fbc7c7" }, "fast")
      .animate({ opacity: "hide" }, "slow")
  }
  return false;
  });
  });
  &lt;/script&gt;
  </code></pre>