title: Remove table row if mapped td equals something
body: <p>Hi I have an events list that I want to show only upcoming events.
  I want to remove past events table rows if date is less than todays date.</p>
  
  <p>But I cannot get the associated row to remove?</p>
  
  <p>Thanks</p>
  
  <pre><code>var date = jQuery('tr.Entries').find('td.event-date &gt; a').text();
  var dates = jQuery('tr.Entries').find('td.event-date &gt; a').map(function() {
    return jQuery(this).text();
  }).get();
  
  var currentDate = new Date();
  currentDate = ("0" + currentDate.getDate()).slice(-2) + "/" + ("0" + (currentDate.getMonth() + 1)).slice(-2) + "/" + currentDate.getFullYear();
  
  jQuery.each(dates, function(index, value) {
    if (value &lt; currentDate) {
      console.log("true");
      if (date === value) {
        console.log("true");
        jQuery(date).parent().remove(); //how to map table date to the row and delete the row?
      }
    }
  });
  </code></pre>