Simple but can't make it work, here is my script ...
$('body').after('<div id="lightBox" style="height: ' + htmlHeight + 'px;"></div>');
How can I make it disappear, and not just pop up? put fadeIn() after or before .after() doesn't work?
fadeIn()
.after()
$('body').after('<div id="lightBox" style="height: ' + htmlHeight + 'px; display:none;"></div>'); $('#lightBox').fadeIn();
$('body').after('<div id="lightBox" style="height: ' + htmlHeight + 'px;"></div>'); $("#lightBox").hide().fadeIn();
He hides it and then disappears in
Shortcut:
$('body').after($('<div id="lightBox" style="height: ' + htmlHeight + 'px;"></div>').hide().fadeIn());