select first hidden input element of the previous control on the same node
<p><img src="http://i.stack.imgur.com/OxVVH.jpg" alt="enter image description here"></p>

<p>Above you can see my DOM , how do I get to the input from the a tag  as shown below. Note that the portion is repeated multiple times as it is derived from a repeater control. </p>

<p>I did post a similar question earlier , which I have flagged for deletion as the question seems to be confusing.</p>

<p>The target is a hidden field, and assume that I only know that the ID is suffixed with "AID". So how can i select it ?</p>

<p>here is what i have tried , but i know its wrong though</p>

<pre><code>var AnsID = $('*:hidden:first[id*="AID"]').prev("div");
</code></pre>

<p>any help appreciated guys. thanks!</p>
