title: populate html table with json values
body: <p>I have an table.html, data.php and json.csv within the same folder.</p>
  
  <p>data.php is doing <code>fopen("json.csv","r")</code> to read from json.csv.</p>
  
  <p>How can I display the json objects as a table within table.html?</p>
  
  <pre><code>    &lt;html&gt;
      &lt;head&gt;
      &lt;script type="text/javascript" src="jquery.js"&gt;
      function display(){
    $.post('data.php',function(data){
       $("#txtJSON").html(data); 
    });
      }
  
     &lt;/script&gt;
     &lt;/head&gt;
     &lt;body onload="display()"&gt;
     &lt;table id="#jobtable"&gt;
     &lt;input type="text" id="txtJSON" /&gt;
     &lt;/table&gt;
     &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>