Is it possible to add a JavaScript variable into JQuery .html() statement?
<p>bit of an odd question but is it possible to add a variable in the middle of a JQuery .html statement. </p>

<p>IE can I do something like.</p>

<pre><code>var x = 150;

$("#sandbox").html("&lt;div id='toannimate" + x + "' style='width:100px;'&gt;&lt;/div&gt;");
</code></pre>

<p>I want to create a div with a new name that I just created. So I would have a loop and each time it added .html the new div id would be toannimate1, toannimate2, toannimate3, etc. </p>

<p>Or if I wanted to define the absolute position of that div could I set the x pos to a number from a variable?</p>

<p>Thanks in advance. </p>
