title: How to put JSON data into a HTML div?
body: <p>Here is my problem: I want to put JSON data that I catch with an Ajax call in an HTML div. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function showEspece(espece, categorie, object) {
    $.ajax({
      type: 'POST',
      url: 'getespece.php',
      data: {
        espece: espece,
        categorie: categorie
      },
      dataType: 'json',
      success: function(data) {
        console.log(data);
        $('#output').html(data); //what i try to do but don't work
      },
      error: function(xhr, status, error) {
        console.log(error);
      }
    });
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="output"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>And here is what the variable data contains: </p>
  
  <p><a href="https://i.stack.imgur.com/hNac0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hNac0.jpg" alt="enter image description here"></a></p>
  
  <p>How can I show the variable's content in an HTML div - in a table particularly?</p>