In the following code, on click of the td the color is changed for the td,but when someother td is clicked the old td color remains how to clear all td colors.I cannot use jquery or angular-jquery
<tr ng-repeat="r in myrows">
<td style="width:100px;"><a href="javascript:void(0);" ng-click="getorder($event,r.id)" style="display:inline-block;">{{r.title}}</a></td
</tr>
$scope.getorder = function($event,release_id)
{
console.log($event.currentTarget.parentNode);
td = $event.currentTarget.parentNode;
$event.currentTarget.parentNode.backgroundColor="red";
}
tdit turns to a colour, and when you click on anothertd, it changes colour whie all othertds are back to white?