title: JSoup search by attribute and class
body: <p>You can do: </p>
  
  <pre><code>Elements links = doc.select("a[href]");
  </code></pre>
  
  <p>to find all "a" elements with an href attribute.</p>
  
  <p>And you can do:</p>
  
  <pre><code>doc.getElementsByClass("title")
  </code></pre>
  
  <p>to get all elements with a class that is called "title"</p>
  
  <p>But how can I do both? (I.e search for an "a" element with an "href" tag that also has the class "title").</p>