How to match an element which has an attribute which "contains" a certain value using Jquery but
<p>I have an array of input controls garnered like so: </p>

<pre><code>   var hiddenInputs = $("input[id^='Unanswered']")
</code></pre>

<p>Each hidden input resides in a container which has another control which I am interested in getting the value of.</p>

<p>I iterate over the array of hiddenInputs </p>

<pre><code>   $.each(hiddenInputs, function(i, val) {
</code></pre>

<p>Now, the element I would like to find belongs in the same container, so I can traverse up the DOM to the parent and then I want to get at element(s) which have the id which contains the text 'mainInputControl'   </p>

<pre><code>    var question = $(val).parent("input[id*='mainInputControl']");

    });
</code></pre>

<p>I am expecting the a shiny JQuery object to be nestling in question.  What am I doing wrong? </p>

<p>Edit...
For some further insight. This is what is in the children of the parent node: [input#Unanswered, input#ctl00_ContentPlaceHolder1_renderingEngine_ctl01_0_ctl00_0_ctl00_mainInputControl.hasDatepicker] I would like to get at second of these controls! Maybe I need to do the attribute selection within the children method()....</p>
