title: How to add id as a variable in jquery while appending?
body: <pre><code>for(var i=0;i&lt;va;i++){
              var not=result2.data[i].unique_id;
              var matchname = result2.data[i].description;
              $("#matches").append("&lt;br&gt;&lt;p id='"+ not +"'&gt;&lt;/p&gt;&lt;br&gt;");
              $("#not").text("hello");
          }
  </code></pre>
  
  <p>Even after adding id='"+ not +" not showing.
  The output is not showing anything. I am pretty sure it is considering id as some name but not as variable. How to make id as variable. I am new to jquery, Please help me out. Thanks in advance for the answer. </p>