how to assign a class in jquery from a php variable?
<p>Is it possible to assign a class from a php variable to a new appended div in jquery?</p>

<pre><code>$newItems = $('&lt;div class="PHP VARIABLE PRINTS HERE A CLASS"&gt;&lt;/div&gt;');
</code></pre>

<p>In my case, for other things, I am defining a var to defign what I then append in jquery but I need to get the class of the newly inserted div from a php variable. Is it possible?</p>
