title: How to get a value from a div tag using cheerio's nodeJS
body: <p>I'm making a webscraper using <code>cheerio</code> and <code>request</code> in NodeJS and I can't get a special value from a <code>div</code>.</p>
  
  <p>I would get the 'idproduit' value (223) from this <code>div</code> :</p>
  
  <pre><code>&lt;div class="vignette_footer js-vignette_footer" idproduit="223"&gt;
  </code></pre>
  
  <p>For this I'm doing : (EDITED)</p>
  
  <pre><code>$('.vignettes_produit li').each(function(i, element) {
  
          var jsObject = { id: id++, idProduit: null};
  
          jsObject.idProduit = $(this).find('.vignette_footer).attr('idproduit');
  });
  </code></pre>
  
  <p>But it's gaving me an <code>undefined</code> result.</p>
  
  <p>Does anyone know how I have to do ?</p>