
January 10th, 2013, 05:57 PM
|
|
|
|
FadeOut('slow') not working. <span> just disappears.
EDIT: Nevermind, apparently fadeOut cannot be applied to a span, since it worked when I changed it to <p>.
This should be pretty easy. Can one of you take a look at this code snippet and let me know if you see anything wrong.
Basically, it's a line of text contained in a <span>, and I'd like it to fade away after 4 seconds. Instead, there is no fade effect, it just disappears after 4 seconds.
Code:
<script type='text/javascript'>
$(document).ready(function(){
setTimeout(function(){
$('#success').fadeOut('slow');
}, 4000);
});
</script>
Last edited by BlackAce : January 10th, 2013 at 06:02 PM.
|