title: How to use variable in string in jQuery
body: <p>I want to use a variable in a string. I have tried to do it many times, but it is only getting the variable name.</p>
  
  <pre><code>&lt;head&gt;
      &lt;script type="text/javascript" src="jquery-1.7.2.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
         $(function(){
            $("a").click(function(){
             var id= $(".id").html();
             $('.html').html("&lt;div class='new' id=+id+&gt;jitender&lt;/div&gt;")
               });
         });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
     &lt;div class="wrap"&gt;
        &lt;a href="#"&gt;Make Html&lt;/a&gt;
        &lt;div class="html"&gt;&lt;/div&gt;
        &lt;div class="id"&gt;first&lt;/div&gt;
     &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>