How do I refer to an element by the value of its index?
<p>I am using jQuery 1.4.3.</p>

<p>I have a group of checkboxes like this:</p>

<pre><code>&lt;input type='checkbox' class="Product" value="5"&gt;
&lt;input type='checkbox' class="Product" value="2"&gt;
&lt;input type='checkbox' class="Product" value="3"&gt;
</code></pre>

<p>I am getting an element's index like this:</p>

<pre><code>$(".Product").click(function() {
    // GET PRODUCT DETAILS
    var Idx = $(this).index(".Product");
)};
</code></pre>

<p>If you click on the first checkbox, the value of Idx should be zero. If the second box is clicked, the value of Idx should be one. If you click on the third box, Idx will be two.</p>

<p>Now let's say I want to uncheck the box that was just clicked using its index. How do I refer to an element by the value of its index?</p>

<pre><code>$(".Product").click(function() {
    // GET PRODUCT DETAILS
    var Idx = $(this).index(".Product");
    alert('The index of the checkbox that was clicked was ' + Idx );

    // UNCHECK THE BOX THAT WAS JUST CHECKED -- NOT USING THIS
    $(".Product").index(Idx).attr("checked", false);


)};
</code></pre>

<p>This is the line that is incorrect and needs to be fixed:</p>

<pre><code>    // UNCHECK THE BOX THAT WAS JUST CHECKED -- NOT USING THIS
    $(".Product").index(Idx).attr("checked", false);
</code></pre>

<p>Can you fix this?</p>
