jquery selector to select parent's first hidden element with an id that contains "AID"
<p>I want to select the parents first hidden element with an id value that contains "AID". How do I do that ? </p>

<p>My code so far:</p>

<pre><code>function appendControl(e) { 
    var AnsID = $("input:hidden[value='1']"); 
    alert(AnsID.val()); 
    var parent = $(e).parent().get(0); 
    var answerbox = $(e).prev("div"); 
    $(answerbox).append("&lt;div class='ansitem'&gt;Hello World here I am this is me !&lt;/div&gt;"); 
}
</code></pre>

<p>->div.<br/>
---input(target)<br/>
---some div<br/>
---span<br/>
---a (control)<br/></p>

<p><strong>EDIT</strong>
GUYS can you flag this for deletion pls.</p>

<p>Assuming I don't know the  full ID or class of the target , I want to be able to select the ID of the target containing "AID". The target is the first child of the current element's parent. </p>
