title: Placing JSON values from a json response, to HTML elements
body: <p>Every 2 seconds, I send out a POST that returns:</p>
  
  <pre><code>[{"a":false,"i":"58","b":"sergio","p":"0,22","t":15},
  {"a":false,"i":"59","b":"sergio","p":"0,23","t":15},
  {"a":false,"i":"60","b":"sergio","p":"0,14","t":15},
  {"a":false,"i":"61","b":"sergio","p":"0,07","t":15}]
  </code></pre>
  
  <p>I have a Javascript function that captures this information and I'd like it to also parse the JSON and place the values into their appropriate elements.</p>
  
  <pre><code>function updateauctions(response) {
      //Parse JSON and place into HTML elements.
  
      //For debug purposes.
      alert(response);
  }
  </code></pre>
  
  <p>I'm using jQuery and I'd like to know how to fetch JSON values, and place them into HTML elements.</p>
  
  <p>An example of a div <code>.auctionbox</code>:</p>
  
  <pre><code>&lt;div id="60" class="auctionbox gold"&gt;
      //Other things here.
  &lt;/div&gt;
  </code></pre>
  
  <p>For example, I have <code>n</code> amount of divs with class <code>.auctionbox</code> and each one of those divs also has an ID of <code>#i</code>. So each JSON object corresponds to a single <code>.auctionbox</code>. How would I place the <code>p</code> value of the JSON into the appropriate <code>#i</code>, <code>.auctionbox</code>?</p>
  
  <p>With this simple example, I can start working on other requirements, I just need a little nudge. :)</p>
  
  <p>Thank you.</p>