adding a div element via jQuery
<p>In a complex loop that is getting data from Facebook I have to add a blank div with class name out side of an img tag.How do I do that.</p>

<pre><code>//Currently it's like the following
&lt;img src="img" id="imageID"&gt;&lt;/img&gt;

//Need to get it to following using jQuery
&lt;div class="className"&gt; &lt;img src="img" id="imageID"&gt;&lt;/img&gt; &lt;/div&gt;

//Script

$(#imageID).prepend("&lt;div"&gt;).addClass("className").append(&lt;/div&gt;");
</code></pre>
