title: Can you group jQuery selectors with (slightly more) advanced logic?
body: <p>We're working on a filter system, where you get groups of options, for instance:</p>
  
  <p><strong>Colour</strong>
  Red, Blue, Green</p>
  
  <p><strong>Price Range</strong>
  £0-£5, £6-£10, £11+</p>
  
  <p><strong>Make</strong>
  Adidas, Nike, Converse</p>
  
  <p>Each option is a single checkbox. We filter with the following logic:</p>
  
  <ul>
  <li>OR options from a group</li>
  <li>join those with an AND</li>
  </ul>
  
  <p>So, if I was to check Red, Blue, £0-£5, Nike and Converse, the logic would be:</p>
  
  <p>(Red OR Blue) AND (£0-5) AND (Nike OR Converse)</p>
  
  <p>Each checkbox has an ID. I wish to build a selector using the logic above, but I'm unsure about the best way to do it in jQuery. Obviously ANDs are just appended and ORs (or the equivalent) use commands in these selectors, but that would break the logic without some way of grouping, i.e.:</p>
  
  <p><code>$('(#red,#blue)(#price0to5)(#nike,#converse)')</code></p>
  
  <p>Any suggestions or alternatives?</p>