title: Get the text from a div with a certain condition
body: <p>I have a big div containing many divs inside, I need to get the text from those inner divs but at certain condition, something like this:</p>
  
  <pre><code>for (var i = 0; i &lt; g; i++)
          {
              var h = $('#infor &gt; div').["dataid = i"].text();
              alert(h);
          }
  </code></pre>
  
  <p>(infor) is the id for the big div and (dataid) is the attribute of the inner divs </p>