jQuery closest with attribute filter
<p>Does jQuery 1.5.1 support attribute selectors in the closest method?</p>

<p>Given the structure below, <code>el</code> represents the checkbox with the value 513, and I'm trying to reach up and check the ancestor checkbox with the value of 0 with</p>

<pre><code>$(el).closest("input[value='0']")[0].checked = true;
</code></pre>

<p>but the selector is returning nothing.</p>

<p>Am I missing something silly?</p>

<p><img src="http://i.stack.imgur.com/xEGv4.png" alt="enter image description here"></p>

<hr>

<p><strong>EDIT</strong></p>

<p>Sigh, so the checkbox with value 0 isn't an ancestor to <code>el</code>, just a sibling of the <code>ul</code> ancestor.  I got it to work with</p>

<pre><code>$(el).closest("ul").siblings("input[value='0']")[0].checked = true;
</code></pre>

<p>But us there a cleaner way to grab it?</p>
