title: API Array [0] Javascript/jQuery
body: <p>I am returning data from an api using the getJSON method. The api is from last.fm, and here is the code I have below...</p>
  
  <pre><code>$.getJSON('http://ws.audioscrobbler.com/2.0/?method=album.getinfo&amp;api_key=ba2641c3bcc4d9e90ff25d4a7414f4ec&amp;mbid='+lastresult1mbid+'&amp;format=json', function (infodata) {
          console.log(infodata);       
  
           var lastrel1 =(JSON.stringify(infodata.album.releasedate));
           var releasedate1 = $.parseJSON(lastrel1);
  
           var fmtracks =(JSON.stringify(infodata.album.tracks.track[0].name));
           var tracks1 = $.parseJSON(fmtracks);
  
           $('#lastfminfo1').append(""+releasedate1+"");
  
            $('#tracks1').append(""+tracks1+"");
  
   });
  </code></pre>
  
  <p>For the varible fmtracks there are 15 tracks in this album I need to display, so how can I output them all to the <code>lastmininfo1</code> div?</p>
  
  <p><code>Track[0].name</code> will work, as will <code>track[1]</code>. </p>
  
  <p>I need a loop or [i] or a each function to display them all but everything I am trying will not work.</p>
  
  <p>Help or a point in the write direction would be highly appreciated, Thanks in advance</p>