title: Jsoup - parse a simple <div>
body: <p>I have the following html part:</p>
  
  <pre><code>&lt;div class="share-btn print-btn"&gt;
    &lt;a href="etc" target="print_169471" rel="nofollow" class="bottom_tooltip empty" title="Print the article"&gt;&lt;i class="print"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>from which i would like to extract only the link under href attr.
  I tried using my code: </p>
  
  <pre><code>    Document mainDoc = Jsoup.connect("http://main-html").get();
  
      Elements newsHeadlines = mainDoc.select(".share-btn print-btn");
  
      String printLink = newsHeadlines.attr("href");
      System.out.println(printLink);
  </code></pre>
  
  <p>where main-html includes the part I showed above, but it doesn't work. I guess the issue is on ".share-btn print-btn"; maybe Jsoup selects only the first string, which is not viable; so I would need to select both strings in order to obtain the link under "href" tag.</p>