title: Print json data in a table
body: <p>I have wrote the following function but I'm pretty sure there is an error. This is the error when I try to execute this chunck of code</p>
  
  <pre><code>TypeError: 'undefined' is not a function (evaluating 'callback.apply( obj[ i ], args )')
  </code></pre>
  
  <p>Jquery function receive data json list correctlu</p>
  
  <pre><code>$("#result_times")
      .find("tr")
      .remove()
      .end();
  
  $("#result_times")
      .find("table")
      .each(data, function(){  
          $(this).append($("&lt;tr&gt;"));
          $(this).append($("&lt;td&gt;&lt;/td&gt;")).text(data.airport_city_source);
          $(this).append($("&lt;td&gt;&lt;/td&gt;")).text(data.airport_city_dest);
          $(this).append($("&lt;td&gt;&lt;/td&gt;")).text((data.departure_date));
          $(this).append($("&lt;td&gt;&lt;/td&gt;")).text((data.arrival_date));
          $(this).append($("&lt;/tr&gt;"));
      });
  </code></pre>
  
  <p>this is the DOM</p>
  
  <pre><code>&lt;div id='result_times'&gt;
  
              &lt;table&gt;
  
  
              &lt;/table&gt;
  
  
          &lt;/div&gt;
  </code></pre>
  
  <p>Can you suggest me where I wrong?</p>