title: jquery match data attribute to values in an array
body: <p>I have a list kind of like below:</p>
  
  <pre><code>&lt;p class='info' data-info='1'&gt;Info 1 &lt;span class='status'&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class='info' data-info='2'&gt;Info 2 &lt;span class='status'&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class='info' data-info='3'&gt;Info 3 &lt;span class='status'&gt;&lt;/span&gt;&lt;/p&gt;......etc
  </code></pre>
  
  <p>What I need to do is run through all the <code>.info</code> elements and if the <code>data-info</code> number is included in an <code>myArray</code> change the span text. How, in jQuery do I match a value from inside an array ?</p>