title: Printing iterative variable values on a list+ how to submit these values into a form
body: <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
  
      &lt;title&gt;Weather App&lt;/title&gt;
  
      &lt;!-- external CSS link --&gt;
      &lt;link rel="stylesheet" href="css/reset.css"&gt;
      &lt;link rel="stylesheet" href="css/style.css"&gt;
      &lt;script src='js/jquery.js'&gt;&lt;/script&gt;
    &lt;script src="js/app.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;header&gt;
          &lt;div class="title"&gt;
              &lt;h1&gt;Weather App&lt;/h1&gt;
          &lt;/div&gt;
      &lt;/header&gt;
      &lt;div class="container"&gt;
          &lt;form&gt;
              &lt;input type="submit" value="Get Tracks" id="submit-btn"&gt;
          &lt;/form&gt;
      &lt;/div&gt;
      &lt;div&gt;
      High: &lt;span id="hightemp"&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;div&gt;
      Low: &lt;span id="lowtemp"&gt;&lt;/span&gt;
    &lt;/div&gt;
  
    &lt;div id="container"&gt;
                &lt;table&gt;
                  &lt;tbody id="entries"&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>$(document).ready(function() {
  
    var baseURL = "http://ws.audioscrobbler.com/2.0/?method=geo.getTopTracks&amp;country=United%20States&amp;format=json";
  
      $.ajax(baseURL, {
        dataType: "jsonp",
        success: function (data) {
         console.log(data);
  
  
          for (var i = 0; i &lt; 100; i++){
         var name = data.tracks.track[i].name;
         console.log(name)
  
  
        };
      }});
  
  });
  ;
  </code></pre>
  
  <p>I am trying to accomplish two goals</p>
  
  <p><strong>1)</strong> I want to be able to print every value of a variable on a page</p>
  
  <p>I am currently able to console log each iterative variable in a loop, but I would like help actually printing on the page.</p>
  
  <p><strong>2)</strong> The secondary goal is to take each value on the page and submit it into a form.  With each submission I would like the value returned to show up next to the item in the list.</p>
  
  <p>Any ideas?   </p>