Insert element inside a div with jquery
<p>I have 6 images that page using .cycle</p>

<p>The main image is under the #up div that is automatically generated, but I want to add the .thumbnail class to the #up image or insert it </p>

<pre><code>$(function() {
        $('#up').after('&lt;ul id="slide"&gt;').cycle({
            fx:     'fade',
            speed:  'fast',
            timeout: 0,
            pager:  '#slide',
            pagerAnchorBuilder: function(idx, slide) {
                return '&lt;li&gt;&lt;a href="#"&gt;&lt;img src="' + slide.src + '" width="100" height="100" /&gt;&lt;/a&gt;&lt;/li&gt;';
            }
        });
        $('#up').children('img').addClass('.thumbnail');
    });
</code></pre>

<p>Here is the page I am working on if you want a good chuckle -</p>

<p><a href="http://homeplan.com/HPS%20LP/work.html" rel="nofollow">http://homeplan.com/HPS%20LP/work.html</a></p>

<p>Joey</p>
