title: JSON values into HTML table
body: <p>I have a <em>table.html</em>, <em>data.php</em> and <em>json.csv</em> within the same folder.</p>
  
  <p><em>data.php</em> is doing <code>fopen("json.csv","r")</code> to read from <em>json.csv</em>.</p>
  
  <p>How can I display the JSON objects as a table within <em>table.html</em>?</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>