title: Remove table row in jquery using table name
body: <p>I am iterating through checked table rows and want to delete the current row if a certain argument is true but what I have so far deletes the wrong one. Any help appreciated. This is what I have.</p>
  
  <pre><code>$('input[type=checkbox]').each(function() { 
      if (this.checked == true) {
          var del_id = $(this).closest('tr').attr('data-id');
  
          $.each(del_arr, function(index, value ) {
              if (value == del_id) {
                  $('#spreadsheetstable tr:last').remove();
                  console.log('Removing :'+  del_id +' And ' + value);
              }
          });
      }
  });
  </code></pre>