I would have thought you could do something like this:
Example: http://jsfiddle.net/4Sg8E/
$('th.sortable').click(function() {
var $th = $(this);
$th.closest('table').find('td:nth-child(' + ($th.index() + 1) + ')')
.css('background','yellow');
});
He will receive all the elements <td>that are in the same position as clicking <th>, and will remove them.
source
share