title: Displaying QR code image in a specific div using JQuery
body: <p>I succed to convert my QR code to image, but it displayed in a blank page. I want to be displayed in a div. 
  Here is my code:</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>$('#qrBloc').qrcode({width: 200,height: 200, text:"something"});
  var canvas = document.querySelector("#qrBloc canvas");
  var img = canvas.toDataURL("image/png");
  document.write('&lt;img id ="qrimg" src="'+img+'"/&gt;');</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="qrBloc"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>