Get all selected items value
<p>I need to get all values from a set of input text in my page and I need to know if someone of these inputs has value <em>'some value'</em></p>

<p>I'm using JQuery so I'm doing something like:</p>

<pre><code>$('input.partValue').each(function(){
    int count = 0;
    if($(this).val() == 'some value'){
        count++;
    }
});
if(count &gt; 0){
    // do something
}
</code></pre>

<p>but could be useful to have something like:</p>

<pre><code>if($("input.partValue[value='some value']").length &gt; 0){
    // do something
}
</code></pre>

<p>There is something similar?</p>
