Exactly as the title says, I'm trying to remove the entire row of a table if a match occurs. I have the following:
$('tr > td:nth-child(3)').text().match(/\$/g);
So in this case, if the third column contains a '$', I would want the entire row to be removed. I'm not sure how to go about this since the above only returns an array with a length of the number of matches and each index is the matched string.
Pseudo:
if($('tr > td:nth-child(3)').text().match(/\$/g)){
$(this).remove();
}
I've been programming all day so my brain is fried, I'm sure there's something very simple I'm overlooking. Any help is appreciated.