JQuery Syntax Problem?
<p>I am using JQuery to insert divs into a page but i cant seem to get the quotation marks correctly setup.</p>

<p>For example the code below works fine: </p>

<pre><code>var newDiv_1 = '&lt;div id="event_1"&gt;&lt;b&gt;Hello World 01&lt;/b&gt;&lt;/div&gt;'; 
$('#mon_Events').append(newDiv_1);
</code></pre>

<p>But when i try to use variable in place of the normal text, i doesnt seem to work:</p>

<pre><code>var eventname = 1;
var newDiv_1 = '&lt;div id="event_' . eventName . '"&gt;&lt;b&gt;Hello World 01&lt;/b&gt;&lt;/div&gt;';
$('#mon_Events').append(newDiv_1);
</code></pre>

<p>How do i use variable inside this statement?</p>
