Find parent() of control, then find("a") JQuery
<p>I have a <code>&lt;td&gt;</code> that looks something like this:</p>

<pre><code>&lt;td class="myTDClass"&gt;
    &lt;span class="spanClass"&gt;Header&lt;/span&gt;
    &lt;br /&gt;
    &lt;img class='myImages' style='cursor: hand;' onclick='doSomething(control)' alt='this is my alt Text'&gt;&lt;/img&gt;
    &lt;br /&gt;
    &lt;span style="color: #123456;"&gt;More Text&lt;/span&gt;
    &lt;br /&gt;
    &lt;a class='findThisClass'&gt;Insert Alt Text Here&lt;/a&gt;
&lt;/td&gt;
</code></pre>

<p>This calls some jQuery code that sets the alt tag to some new text. Then, i want it to set the <code>&lt;a&gt;</code> element to some new text. Here is the jQuery code:</p>

<pre><code>doSomething = function(control)
  {
    var $myControl = $(control);
    $myControl.attr("alt", "This is the new Alt Text!");

    var $newControl = $(control).parent().siblings().find(".findThisClass").first();
    alert($newControl.find("a").text());
  });
</code></pre>

<p>The jQuery code sets the alt tag great, but doesn't find the <code>&lt;a class=findThisClass /&gt;</code>.</p>

<p>I think I'm using the <code>.parent()</code> and <code>.siblings()</code> wrong. Can anyone find my error? The idea here is that I can search <em>just</em> inside the <code>&lt;td&gt;</code> for the <code>&lt;a&gt;</code> element, and not touch the other  elements in other <code>&lt;td&gt;</code>s</p>
