I have a div where I did a $('#div').css('display', 'none');
Now, to bring this item back, I want to fade it in. However, it seems like $('#div').fadeIn() is not doing it, but I don’t want to set display back to block, as if I do it just re-appears instantly instead of fading.. any ideas?
Try
to hide the element.
Update: I suggested this because I came a problem with setting
.css('display', 'none')on thebodyin Firefox. But it should work for other elements.But if it does not work with
hide()then you definitely have another problem and you have to post more code or provide a demo.In which browser does it fail? Are you sure
$('#div').fadeIn()is executed?