title: why doesn't this jquery html() function work?
body: <p>I created this very basic example of a jquery html() function but it doesn't work:</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-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
      var html = "&lt;div&gt;Test&lt;/div&gt;";
      $('#TestDiv').html(html);
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;div id="TestDiv" style="height:50px;width:50px;border:1px solid black;"&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsbin.com/feqataq/edit?html,output" rel="nofollow">View on JSBin</a></p>
  
  <p>Any idea what the issue might be?</p>