title: jQuery - Get a selection based on value
body: <p>I'm sure this is painfully simple but I just can seem to find it.</p>
  
  <p>I need to get a selection of textboxes from their value.  I don't need the value, I need the elements. I want something like:</p>
  
  <pre><code>$(".ProductCode [value:'hideme']").hide();
  </code></pre>
  
  <p>I end up with </p>
  
  <pre><code>unrecognized expression: [value:'hideme']
  </code></pre>
  
  <p>btw,</p>
  
  <pre><code>$(".ProductCode").each(function() { if ($(this).val() == 'hideme') $(this).hide(); });
  </code></pre>
  
  <p>Is working but it doesn't seem very clean.</p>