This is not tested, but should work:
window.something.updateStatus = function(theName) { $('#myTable').children('tr').remove(":contains('" + theName +"')"); };
In fact, it removes theName variable from the string, but still quotes this value (after interpolating the variable), therefore there is an opening and closing ' on each side of the variable and + concatenation operators.
source share