[jQuery] Dynamically prepending elements to a div

[jQuery] Dynamically prepending elements to a div


Hey all
In this example, how come I can't prepend the paragraph to the div more than
once?
$("#adder").click(function()
{
$('#container').prepend($('#content'));
});
# Add content
<div id="container"></div>
<p id="content">content
--
View this message in context: http://www.nabble.com/Dynamically-prepending-elements-to-a-div-tp15480643s27240p15480643.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.