Forum Moderators: open

Message Too Old, No Replies

Jquery and fadeIn help.

         

PokeTech

12:52 am on Jun 16, 2009 (gmt 0)

10+ Year Member



This is kind of stupid but I'm having a big problem with fading in... It was working fine and then I updated my server to a new Plesk version so I'm not sure if it's that or just an error.

Here's my code:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

<script type="text/javascript">
$(document).ready(function(){
$("#test").text("Test to see if it will fade in.").fadeIn('slow');
});
</script>

<div id="test"></div>

To me that looks fine. Everything works except the fadeIn() part. It places the text in the div correctly and everything that's why it's confusing me.

Thanks in advance for help!

PokeTech

1:55 am on Jun 16, 2009 (gmt 0)

10+ Year Member



Figured it out. The div needs to have style="display:none" in it for it to work.