demettriss,
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
.any td{
width: 300px;
height: 20px;
background: #FFCC00;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(function() {
$( ".closeSubtask" ).parents('tr').addClass('any');
});
</script>
</head>
<body>
<table>
<tr>
<td><div class="closeSubtask">aaaaaaaa</div></td>
</tr>
<tr>
<td><div class="closeSubtask">aaaaaaaa</div></td>
</tr>
<tr>
<td><div class="nocheck">aaaaaaaa</div></td>
</tr>
<tr>
<td><div class="closeSubtask">aaaaaaaa</div></td>
</tr>
</table>
</body>
</html>