The following code works fine in browsers other than IE. In IE, only the #toggle-instructions handler works, but #toggle-cue-sheet-instructions does not. Anyone know why IE has trouble with this? What happens is that clicking on the link with id=toggle-cue-sheet-instructions does nothing while clicking on the link with id=toggle-instructions works fine. I tried toggle, but, if I recall correctly, I had an issue with it in one of the browsers and went this route instead (which isn't my preference). Everything works perfectly in Safari and Firefox (what else is new right?).
$(document).ready(function(){
$("#toggle-instructions").click(function() {
if ($("#download-items #instructions").is(":hidden")) {
$("#download-items .instructions-link a").text("Hide download instructions");
$("#download-items #instructions").slideDown("slow");
}
else {
$("#download-items .instructions-link a").text("View download instructions");
$("#download-items #instructions").slideUp("normal");
}
return false;
});
$("#toggle-cue-sheet-instructions").click(function() {
if ($("#prs-info-container #instructions").is(":hidden")) {
$("#prs-info-container .instructions-link a").text("Hide cue sheet instructions");
$("#prs-info-container #instructions").slideDown("slow");
}
else {
$("#prs-info-container .instructions-link a").text("View cue sheet instructions");
$("#prs-info-container #instructions").slideUp("normal");
}
return false;
});
});