title: JQuery: how to use each in a result of find()?
body: <pre><code>$.get(url, function(data){
      $("&lt;div&gt;" + data + "&lt;/div&gt;").find('.list [class^=data]').each(function(){
          if($(this).is("[class^=dataitem]")){
              //code for dataitem
          }
          else{
              //code for not dataitem
          }
      });
  });
  </code></pre>
  
  <p>With the get function I generate a strig variable with the code of the url page.
  In this variable I find the tags, child of tag with class=list, whose class starts with "data" and for each of these control if the class starts with "dataItem" and if so apply the code for these tags.
  Why doesn't it work?</p>