title: div class name or change method?
body: <p>I want add my page some div and another tags.I wanna give unique class name like that:</p>
  
  <pre><code> dataType: "json",
              success: function (msg) {
                  var c = eval(msg.d);
                  var html = ''; //'&lt;tbody&gt;';
                  for (var i = 0; i &lt; c.length; i++) {
                      var className = "questionContainer " + i;
                      html += "&lt;div class=" + className + "&gt;";
                      html += "&lt;div class=question&gt;&lt;b&gt;Question" + (i + 1) + ":&lt;/b&gt;" + c[i].Name + "?&lt;/div&gt;";
                      html += "&lt;div class=answers&gt;&lt;ul&gt;";
                      for (var j = 0; j &lt; c[i].Choses.length; j++) {
                          html += "&lt;li&gt; &lt;label&gt;&lt;input type=radio name=q1" + i + i + "id=q1-a /&gt;" + c[i].Choses[j].Name + "&lt;/label&gt;&lt;/li&gt;";
                      }
                      html += "&lt;/ul&gt;&lt;/div&gt;";
                      html += "&lt;div class=btnContainer&gt;&lt;div class=prev&gt;&lt;/div&gt;&lt;div class=next&gt;&lt;a class=btnNext&gt;Next &amp;gt;&amp;gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=clear&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;";
                  }
                  html += '&lt;/div&gt;';
                  // $('#dataTable').empty();
                  $('.as').append(html);
  
              }
          });
      });
  &lt;/script&gt;
  &lt;head&gt;
      &lt;body&gt;
        &lt;h1&gt;jQuiz Demo Page&lt;/h1&gt;
        &lt;div class="as"&gt;&lt;/div&gt;
  
      &lt;/body&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>but my html show </p>
  
  <pre><code> &lt;div id="0" class="questionContainer" 0=""&gt; like that how can I fixed?
  </code></pre>
  
  <p>space must have inside.</p>