$(document).ready(function(){
     $('td:has(a.selected)').addClass('selected_td');
});

