Javascript invalid assign left hand side
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6503409/invalid-assignment-left-hand-side-javascript">Invalid assignment left-hand side, javascript</a>  </p>
</blockquote>



<pre><code>                   var htmlToAdd = '&lt;label for="A'+indexNr+'" class="PriceLabel"&gt;Min&lt;/label&gt;'
                                += '&lt;input style="width:3em" name="B'+indexNr+'" id="B'+indexNr+'" type="text"  /&gt;'
                                += '&lt;label for="C'+indexNr+'" class="MaxPriceLabel"&gt;Max&lt;/label&gt;'
                                += &lt;input style="width:3em" name="D'+indexNr+'" id="D'+indexNr+'" type="text"  /&gt;';
</code></pre>

<p>I am trying to create html as string and then use append to some another html element. Firebug is giving me </p>

<p>invalid assignment left-hand side</p>

<pre><code>    [Break On This Error] += '&lt;input style=...rcentage'+indexNr+'" type="text" /&gt;'   
</code></pre>
