please...PLEASE help me

please...PLEASE help me

Hey guys, I hate registering and asking questions strait away without introducing...

So...hello, im Teln3t.



I'm the designer/coder for E-ImageSite.com, and I'm currently revamping the Achieve portion of the website. I have a serious problem though that I've been trying to solve through the jQuery docs, and I absolutely cannot find what to do.


What I've been attempting to code:
1. Click an <a> tag as a toggle(simple)
2. Select TD parent to the <a>(only one)
3. Use CSS to background-color: red;

What I aim to do:
1. Use ajax to comunicate with delete.php which takes care of deleting the selected <a>/<TD>s by removing them from the database etc etc(I know how to do the php bit, but not the ajax/jQuery bit)

I'm only 4 days experienced with jQuery, but I've been spending hours understanding the logic and usefull functions behind it, so I know a good bit.

Here is my code for visual reference:

html(same as all others pulled down)
<TD id="selectable">
<a href="<? echo $URL; ?>" Class="Tips1" Title="<? echo $Raw_Name; ?> :: Uploaded (<? echo $Date; ?>)" target="_blank">
<img src="<? echo $Image; ?>" width=<? echo $width; ?> height=<? echo $height; ?> border="0" class="webimg"/></a> 
<a href="#" class="select">+</a>
</TD>


JS (most likely incorrect)
function showParents() {
      $("td").css("border-color", "white");
      var len = $("td.selected")
                       .parents("td")
                       .css("border", "2px red solid")
                       .length;
}
$("a.select").click(function () {
      $(this).toggleClass("selected");
      showParents();
});


I am....so lost as to what to do...