Select parent containing specific child
<p>i have this structure in html:</p>

<pre><code>&lt;ul id="resultlist"&gt;
    &lt;li&gt;
        &lt;input type="hidden" value="idNumber" /&gt;
        &lt;dl&gt;
        ...
        &lt;/dl&gt;
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>is there a one-liner method in jquery that finds the <code>&lt;li&gt;</code> based on the child?</p>

<p>currently i have this in my code to find the <code>&lt;li&gt;</code> but it's quite long:</p>

<pre><code>//dynamic value
var idNumber = 2; 

//finds input with value of 2
var hiddenInput = $('#resultList').find('input[value='+idNumber+']'); 

var listItem = hiddenInput.parent();
</code></pre>
