How to filter out by class and attribute value?
<p>I am using jQuery 1.4.3</p>

<p>I have several input that look like this:</p>

<pre><code> &lt;input type='checkbox' id='1' class='Product' comp='1'&gt;
 &lt;input type='checkbox' id='2' class='Product' comp='1'&gt;
 &lt;input type='checkbox' id='3' class='Product' comp='1'&gt;
 &lt;input type='checkbox' id='4' class='Product' comp='2'&gt;
 &lt;input type='checkbox' id='5' class='Product' comp='2'&gt;
 &lt;input type='checkbox' id='6' class='Product' comp='2'&gt;
</code></pre>

<p>If a box with the Product class is clicked I want to get its comp value and uncheck the other boxes that have a different comp value.  </p>

<p>Normally, I would loop through and check each comp value and then uncheck where necessary, like this pseudo code:</p>

<pre><code>ThisComp == 1 // comp value of checkbox that was just clicked
$(".Product").each(function() {
     var Comp $(this).attr("comp");
     if (ThisComp != Comp) {
         // $(this).attr("checked", false);
     }
});
</code></pre>

<p>I am wondering if there is a way to filter using the comp value in the selector, such as this pseudo code:</p>

<pre><code>$(".Product comp=2").attr("checked", false);
</code></pre>

<p>The goal here is to uncheck any box that has a different comp value than the one clicked in an efficient way.</p>
