Jump to content

jQuery fade effects in IE(8)


Rain Lover
 Share

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?

Link to comment
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.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...