Jump to content
Rain Lover

jQuery fade effects in IE(8)

Recommended Posts

Sample code:

<!DOCTYPE html><html><head><title></title><style>span {display:none;}</style><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script><script>$(document).ready(function(){  $("button").click(function(){    $("span").fadeIn(3000);  });});</script></head><body><button>Fade in</button><span>This is some text.</span></body></html>

It doesn't work in IE8 and probably older versions. Any solution?

Share this post


Link to post
Share on other sites

what doesn't work? What debugging have you tied? Do any of the event handlers fire? Are you checking for errors in the console?

Share this post


Link to post
Share on other sites
what doesn't work? What debugging have you tied? Do any of the event handlers fire? Are you checking for errors in the console?
It just doesn't fade in -- as soon as you click on the button, the text appears.

Share this post


Link to post
Share on other sites

It works with this version

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...