jquery - test if a specific checkbox in range is checked within a fieldset
<p>I need to see if any checkboxes within a range in a fieldset are checked</p>

<pre><code>&lt;fieldset id="issues"&gt;
    &lt;input name="A" id="issue_0" type="checkbox" value="A" /&gt; &lt;--- this one
    &lt;input name="B" id="issue_1" type="checkbox" value="B" /&gt;
    &lt;input name="C" id="issue_2" type="checkbox" value="C" /&gt;
    &lt;input name="D" id="issue_3" type="checkbox" value="D" /&gt;
    &lt;input name="E" id="issue_4" type="checkbox" value="E" /&gt;
&lt;/fieldset&gt;
</code></pre>

<p>The field set is #issues, this works fine to see if any of them are checked</p>

<pre><code>if( $('#issues input[type="checkbox"]').is(':checked') ){
  console.log("One of them is checked");
}
</code></pre>

<p>But I want to see if a specific checkbox by index is checked, ie if the first one is checked. I tried this...</p>

<pre><code>if( $('#issues input[type="checkbox"][0]').is(':checked') ){
  console.log("Item one is checked");
}
</code></pre>

<p>but it doesn't work</p>

<p>How do I target a specific checkbox by index within a fieldset?</p>
