title: jquery has selector, to find element if it has 2 things in it
body: <p>I'm currently writing a filter for a selectable, I have some table cells that contain divs.</p>
  
  <p>the divs have a classes named start middle &amp; end.</p>
  
  <p>essentially I want to filter out table cells that contain the div "middle", or contain BOTH "start" and "end". however, if the cell contains only "start" or "end", then it should still be selectable.</p>
  
  <p>I've got the following so far,</p>
  
  <pre><code>$("#someTable tbody tr").selectable({ 
      filter: 'td:not(td:has(div.middle),
      td:has(div.start,div.end))', 
      });
  </code></pre>
  
  <p>but I cant figure out how to get the line </p>
  
  <pre><code>td:has(div.start,div.end))'
  </code></pre>
  
  <p>to do div.start AND div.end, as it's matching cells that contain either at the moment...</p>
  
  <p>any help would be greatly appreciated!</p>