title: Find table row by a given cell value and delete that row
body: <p>I have a table with 3 columns-</p>
  
  <pre><code>&lt;table id="my_list"&gt;
      &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;column 1&lt;/th&gt;
          &lt;th&gt;column 2&lt;/th&gt;
          &lt;th&gt;column 3&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tr&gt;
          &lt;td&gt;value 1&lt;/td&gt;
          &lt;td&gt;value 2&lt;/td&gt;
          &lt;td&gt;value 3&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I'm writing a function that searches the table for a <code>given_value</code> and deletes the row that contains it-</p>
  
  <pre><code>function delete_row (given_value) {
      var table_row = $("td").filter(function() {
          return $('#my_list').text() == given_value;
      }).closest("tr");
  
      // Removing the row from `my_list` table
      table_row.remove();
  
  }
  </code></pre>
  
  <p>But this is not deleting the row.</p>
  
  <p>Also, I only want to search the text values in <code>column 2</code>, so if there's a faster way to search the table, that would be great to know too.</p>