I need to select the
<table> before the table where the link I clicked. I can't use IDs, because I don't want to edit my jQuery every time I add a new table.
but this looks kinda bloated for me:
$(this).closest("table").prevAll("table").first().css( "background", "yellow" );
take a look here: http://jsfiddle.net/syddmxfn/13/