title: jQuery Attribute Contains Selector
body: <p>I have a set of divs eg:</p>
  
  <pre><code>&lt;div class="wrapper"&gt;
   &lt;div class="uct_attr" data-tags="one two three four"&gt;stuff&lt;/div&gt;
   &lt;div class="uct_attr" data-tags="three four"&gt;stuff&lt;/div&gt;
   &lt;div class="uct_attr" data-tags="one three five"&gt;stuff&lt;/div&gt;
   &lt;div class="uct_attr" data-tags="one two six"&gt;stuff&lt;/div&gt;
   &lt;div class="uct_attr" data-tags="four five six"&gt;stuff&lt;/div&gt;
  &lt;/div?
  </code></pre>
  
  <p>How do I perform and action on the ones that match my query and another on the ones that dont? Keeping in mind I one wish to match one of the words in the attribute data-tags</p>
  
  <p>eg:</p>
  
  <pre><code>// if match 'one'
  $('.wrapper .uct_attr[data-tags="one"]').doMatch();
  // the rest that didn't match 'one'
  $('.wrapper .uct_attr[data-tags!="one"]').doNotMatch();
  </code></pre>
  
  <p>Issue I think is there are multipul tags in that attribute.</p>
  
  <p>Any help on this would be great.</p>
  
  <p>C</p>