Yesterday I was working on some code and scratching my head on why my
seemingly simple code wasn't working: 

$("<div>inner</div>")
        .appendTo("<div>outer</div>")
        .appendTo("body");

Only the <div>inner</div> was getting appended to the <body> tag.

Then I realized why--I wasn't thinking about the jQuery chain correctly. 

That led me to write a blog entry today:
http://blog.pengoworks.com/blogger/index.cfm?action=blog:611

For those of you who don't know why my example didn't work, go read my blog
for the full breakdown. :)

-Dan

PS - My blog doesn't contain ads.

Reply via email to