arashvg,
можно было добавить 1 строку в первоначальный вариант
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style>
.click {
background-color: green;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function () {
$('td').click(function () {
$('.' + this.className).not(this).removeClass('click');
$(this).toggleClass('click');
});
})
</script>
</head>
<body>
<table class="bordered">
<tr>
<td class="lc" id="id1">Text1</td>
<td class="rc" id="id2">Text2</td>
</tr>
<tr>
<td class="lc" id="id3">Text3</td>
<td class="rc" id="id4">Text4</td>
</tr>
<tr>
<td class="lc" id="id5">Text5</td>
<td class="rc" id="id6">Text6</td>
</tr>
</table>
</body>
</html>