trying to add variable for div id. is it possible?
<p>i am trying to use variable inside body. just see below sample code</p>

<pre><code>&lt;body&gt;
 &lt;div class="demo"&gt;
     &lt;script&gt;
     var count = 4;
      for(i=1;i&lt;=count;i++){
          var varSlid = "A"+i;
          $('.demo').append('&lt;div id= varSlid &gt;&lt;/div&gt;&lt;/br&gt;');
      }
     &lt;/script&gt;
&lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p>but it is throwing errors. please check and tell me where the error is?</p>
