Re: [jQuery] How to programmatically ad a div element and animate it

2009-12-15 Thread brian
Try this: function CreateNewElement() { $('test content') .appendTo('#contentContainer') .hide() .toggle('slow'); } You'll likely want to change the ID and, obviously, the content. But the principal i the same--jQuery can take the string mar

[jQuery] How to programmatically ad a div element and animate it

2009-12-15 Thread Ham
Hi, Im new to Jquery and have been trying to dynamically create a new div element with document.createElement. I can successfully insert this element into the dom but I want to animate it on creation. After inserting the element into the DOM i try and access it using a JQuery selector but it does