title: how to get hyperlink value and text field using jquery
body: <p>Structure of code is like this and it is in iframe.</p>
  
  <pre><code>&lt;div id="abc"&gt;
  &lt;div id="bcd"&gt;&lt;a href="i want this hyperlink" title="sdf"&gt;&lt;img src="" alt="i want this text"&lt;/a&gt;
  &lt;div&gt;&lt;h1&gt;&lt;a href="i want this hyperlink"&gt;i want this text&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have tried like this but this is not working</p>
  
  <pre><code>var $links= $("#frametest").contents().find("#abc").contents().find("#bcd").contents().find('a');
  var link= $links.attr['href'];
  alert(link);
  </code></pre>