Add dynamically created elements into the DOM with jQuery

[javascript]
var newDiv = $(‘<div></div>’);
newDiv.attr("id","myNewDiv").appendTo("body");
[/javascript]

Leave a Reply