title: How to get child of div in cheerio
body: <p>I am working with cheerio and I am stuck at a point where I want to get the href value of children div of <code>&lt;div class="card"&gt;</code>.</p>
  
  <pre><code>&lt;div class="Card"&gt;  
     &lt;div class="title"&gt;
      &lt;a target="_blank" href="test"&gt;
          Php &lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;some content&lt;/div&gt;
      &lt;div&gt;some content&lt;/div&gt;
      &lt;div&gt;some content&lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>I got first childern correctly but i want to get <code>div class=title</code> childern <code>a</code>  href value. I am new to node and i already search for that but i didn't get an appropriate answer.</p>
  
  <p>var jobs = $("div.jobsearch-SerpJobCard",html);</p>
  
  <p>here is my script</p>
  
  <pre><code> const rp = require('request-promise');
   const $  = require('cheerio');
   const potusParse = require('./potusParser');
   const url = "";
  
   rp(url)
     .then((html)=&gt;{
       const Urls = [];
        var jobs = $("div.Card",html);
  
  
        for (let i = 2; i &lt; jobs.length; i++) {
           Urls.push(
                  $("div.Card  &gt; div[class='title'] &gt;a", html)[i].attribs.href
       );
     }
    console.log(Urls);
  
  
     })
  
       .catch(err =&gt; console.log(err));
  </code></pre>