/    Sign up×
Community /Pin to ProfileBookmark

jQuery fade effects in IE(8)

Sample code:

[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>[/CODE]

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

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@SparoHawkNov 01.2012 — For some strange reason I do not yet know, I get the same problem you do. However, when I changed the <span> for <div> it worked just fine.
Copy linkTweet thisAlerts:
@davikerkrishNov 02.2012 — HI ,

It is working fine for now in IE(8). you got any javascript error when page load. If so please corret the error and then try again.
×

Success!

Help @Rain_Lover spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 7.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: @Nanditha,
tipped: article
amount: 1000 SATS,
)...