title: Using innerHTML to display JSON/object data in a certain div
body: <p>I have created the following JS code.  When the HTML document loads, the script displays the three location data sets properly.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Javascript Beginner&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script&gt;
  
  pios ('a', '7886 Dublin Blvd', 'Dublin, ', 'CA ', '94568');
  pios ('b', '1 Stoneridge Mall Space', 'Pleasanton, ', 'CA ', '94588');
  pios ('c', '1120 Stoneridge Mall Drive', 'Pleasanton, ', 'CA ', '94566');
  
  function pios(iID, Address, City, State, Zip)
  {
     document.body.innerHTML +='&lt;p id='+iID+'&gt;&lt;/p&gt;';
     document.getElementById(iID).innerHTML = Address + '&lt;br&gt;' + City + State + Zip;
     
  } 
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now that I got that down I need to understand how I can make this data appear within a specified div, like div id=whatever?  Right now it just appears within the body.</p>
  
  <p>Also, I know this code is rough and thus, wonder what is the best way to write this?</p>