title: How to use dynamic div id from javascript
body: <p>I have this code</p>
  <pre><code>   var div = &quot;detail&quot;
     $(`#${div}`).html(&quot;&quot;);
  </code></pre>
  <p>it shows error like this</p>
  <pre><code>Syntax error, unrecognized expression: #
  </code></pre>
  <p>How can I use variable as id name??</p>