Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
148
rated 0 times [  153] [ 5]  / answers: 1 / hits: 97274  / 14 Years ago, fri, january 14, 2011, 12:00:00
var html = <div id='blah'>Hello stuff here</div>

$(#mycontent).append(html).fadeIn(999);


This doesn't seem to work.



I just want a cool effect when the content gets appended.



Note: I want just the new blah div to fade in, not the entire mycontent.


More From » jquery

 Answers
20
$(html).hide().appendTo(#mycontent).fadeIn(1000);

[#94231] Wednesday, January 12, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mickaylag

Total Points: 333
Total Questions: 108
Total Answers: 93

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
;