title: get own anchor href values
body: <p>Please see my code below . I want to fetch href value from the html. I have create a logic for that like first count all the divs and then fetch all values one by obe but problem is the there is not any unique class or Id and i want fetch one by one.</p>
  
  <pre><code>&lt;script&gt;
      jQuery(document).ready(function(){
  
      var mylength = jQuery(".jr-layout-outer").length;
      console.log(mylength);
      for (i= 1; i &lt;= mylength ;  i++) {
        var aa = jQuery(".jr-layout-outer .jrListingContent .jrListingThumbnail a").attr("href");
        console.log(aa);
  
      };
  
  
      });
  &lt;/script&gt;
  
  
    &lt;div class="jr-layout-outer"&gt; 
      &lt;div class="jrListingContent"&gt;
                &lt;div class="jrListingThumbnail"&gt;
                      &lt;a href="index.php?option=com_content&amp;amp;view=article&amp;amp;id=3"&gt;
                        &lt;img class="jrMediaPhoto" title="" alt="" src="reviews/photos/thumbnail/120x120c/a3/5e/bc/m-mustermann-54-1401265222.png"&gt;
                      &lt;/a&gt;
                &lt;/div&gt;
      &lt;/div&gt; 
    &lt;/div&gt;
  
    &lt;div class="jr-layout-outer"&gt; 
      &lt;div class="jrListingContent"&gt;
                &lt;div class="jrListingThumbnail"&gt;
                      &lt;a href="index.php?option=com_content&amp;amp;view=article&amp;amp;id=3"&gt;
                        &lt;img class="jrMediaPhoto" title="" alt="" src="reviews/photos/thumbnail/120x120c/a3/5e/bc/m-mustermann-54-1401265222.png"&gt;
                      &lt;/a&gt;
                &lt;/div&gt;
      &lt;/div&gt; 
    &lt;/div&gt;
  
    &lt;div class="jr-layout-outer"&gt; 
      &lt;div class="jrListingContent"&gt;
                &lt;div class="jrListingThumbnail"&gt;
                      &lt;a href="index.php?option=com_content&amp;amp;view=article&amp;amp;id=3"&gt;
                        &lt;img class="jrMediaPhoto" title="" alt="" src="reviews/photos/thumbnail/120x120c/a3/5e/bc/m-mustermann-54-1401265222.png"&gt;
                      &lt;/a&gt;
                &lt;/div&gt;
      &lt;/div&gt; 
    &lt;/div&gt;
  
    &lt;div class="jr-layout-outer"&gt; 
      &lt;div class="jrListingContent"&gt;
                &lt;div class="jrListingThumbnail"&gt;
                      &lt;a href="index.php?option=com_content&amp;amp;view=article&amp;amp;id=3"&gt;
                        &lt;img class="jrMediaPhoto" title="" alt="" src="reviews/photos/thumbnail/120x120c/a3/5e/bc/m-mustermann-54-1401265222.png"&gt;
                      &lt;/a&gt;
                &lt;/div&gt;
      &lt;/div&gt; 
    &lt;/div&gt;
  
    &lt;div class="jr-layout-outer"&gt; 
      &lt;div class="jrListingContent"&gt;
                &lt;div class="jrListingThumbnail"&gt;
                      &lt;a href="index.php?option=com_content&amp;amp;view=article&amp;amp;id=3"&gt;
                        &lt;img class="jrMediaPhoto" title="" alt="" src="reviews/photos/thumbnail/120x120c/a3/5e/bc/m-mustermann-54-1401265222.png"&gt;
                      &lt;/a&gt;
                &lt;/div&gt;
      &lt;/div&gt; 
    &lt;/div&gt;
  
    &lt;div class="jr-layout-outer"&gt; 
      &lt;div class="jrListingContent"&gt;
                &lt;div class="jrListingThumbnail"&gt;
                      &lt;a href="index.php?option=com_content&amp;amp;view=article&amp;amp;id=3"&gt;
                        &lt;img class="jrMediaPhoto" title="" alt="" src="reviews/photos/thumbnail/120x120c/a3/5e/bc/m-mustermann-54-1401265222.png"&gt;
                      &lt;/a&gt;
                &lt;/div&gt;
      &lt;/div&gt; 
    &lt;/div&gt;
  
    &lt;div class="jr-layout-outer"&gt; 
      &lt;div class="jrListingContent"&gt;
                &lt;div class="jrListingThumbnail"&gt;
                      &lt;a href="index.php?option=com_content&amp;amp;view=article&amp;amp;id=3"&gt;
                        &lt;img class="jrMediaPhoto" title="" alt="" src="reviews/photos/thumbnail/120x120c/a3/5e/bc/m-mustermann-54-1401265222.png"&gt;
                      &lt;/a&gt;
                &lt;/div&gt;
      &lt;/div&gt; 
    &lt;/div&gt;
  </code></pre>
  
  <p>I want to get anchor tag href attribute in Id.
  Is this possible we will create a make only javascript not change in the divs or class because all are in Ioncube code. </p>