I'm not quite sure why this bit of jQuery isn't working in IE7 & IE8. Does anyone have any ideas what could be causing this?
Asked
Active
Viewed 566 times
2 Answers
2
Well for one thing since you are using jQuery do this without the inline js:
$('input[type=checkbox]').click(function(){
var checkbox = this;
if (checkbox.checked) {
$("#message1").stop(true, true).show().fadeOut(10000);
$("#message2").hide();
}
else {
$("#message1").stop(true, true).hide();
$("#message2").stop(true, true).show().fadeOut(10000);
}
});
Just doing this might fix the IE problem

Naftali
- 144,921
- 39
- 244
- 303
0
I got it, I just needed to remove position:relative and it fades out perfectly. I'm not quite sure why that is though...

MorningStar
- 176
- 1
- 4
- 16