jQuery append() - looks to me like it should work but doesn't
<p>I'm having trouble appending a get() to a dynamically created div. I've marked with a comment the code that's giving me trouble. Can someone please take a look and see what's wrong with it?</p>

<pre><code>var weekday = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],
        today = new Date().getDay(),
        list = $('ul.yui-nav');

    for(var x=0;x&lt;=6;x++){
        $('#' + weekday[x]).hide();
        list.append(
            $('&lt;li&gt;&lt;/li&gt;', {
                html : '&lt;a href = "#' + weekday[x].toLowerCase() + '"&gt;' + weekday[x] + '&lt;/a&gt;'
            }).toggleClass(function(){
                if(today == x){
                    return 'selected';
                }
            }).bind('click', function(e){
                e.preventDefault();
                $(this).parent().children('li').removeClass('selected');
                $(this).addClass('selected');
                $('#' + weekday[x]).hide();
                $('#' + weekday[x]).show();
            })
        );



                    // the 5 lines below is where I'm having trouble
        $('div.yui-content').append(
            $('&lt;div class="content" id="' + weekday[x] + '"&gt;&lt;/div&gt;').append(
                $.get('index.php')
            )
        );

    }
</code></pre>
