function checkAndUpdateStatus(newName) {
$('#myTable').children('tr').remove(":contains('" + newName + "')");
};
The function above is attempting to remove table rows in 'myTable' containing a string matching the value of 'newName'.
If you want to dynamically evaluate the expression, you can pass the value of 'newName' as a parameter to the function.
Hope this helps!