I\'m working on an application that only has jQuery 1.1 installed which dosn\'t support the .closest method.
My script currently looks like this:
$(\
myImage.parentNode;
Is as vanilla as it gets. Whack that in a loop until you hit the required tag type:
while(thisTag.parentNode.tagName !== 'TD') // uppercase in HTML, lower in XML { thisTag=thisTag.parentNode; }
That should do the trick in plain old js.
Danny