title: jQuery select element containing a link that contains any element of array
body: <p>I am trying to work out a complicated jQuery selection. I have an array, and I need to select <code>div.foo</code> that contains a link <code>a.bar</code> and the link's <code>href</code> contains any of the strings in the array.</p>
  
  <p>For example: </p>
  
  <pre><code>&lt;html&gt;
  &lt;div class=foo&gt;
    some text
    &lt;a class=bar href=example.com?q=widget&amp;id=23456789&gt;search&lt;/a&gt;
  &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and jScript</p>
  
  <pre><code>widgets[0]='12345678';
  widgets[1]='23456789';
  widgets[2]='34567890';
  </code></pre>
  
  <p>I want to highlight this div because the query string contains <code>23456789</code> which is one of the elements in <code>widgets[]</code>.</p>
  
  <p>Thanks</p>