title: Extract href values inside td tags in jsoup
body: <p>I have</p>
  
  <pre><code>&lt;table class="table" &gt;
  &lt;tr&gt;   
   &lt;td&gt;&lt;a href="url"&gt;text1&lt;/a&gt;&lt;/td&gt;    
  &lt;td&gt;text2&lt;/td&gt; 
  
   &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href="url2"&gt;text&lt;/a&gt;&lt;/td&gt; 
     &lt;td&gt;text&lt;/td&gt; 
  
  &lt;/tr&gt;
  </code></pre>
  
  <p>and I want to extract the url and text of all rows
  I use</p>
  
  <pre><code>Document doc = Jsoup.connect(url).get();
  for (Element table : doc.select("table.table")) {
                  for (Element row : table.select("tr")) {
                       Elements tds = row.select("td");
                             String text1=tds.get(0).text();
                             String url= row.attr("href");
                           System.out.println(text1+ "," + url);
                  }
  }
  </code></pre>
  
  <p>I get the text1 value but url is null.</p>
  
  <p>How can I get the url from the td tags?    </p>