I’m having an issue with a jQuery script with IE7. The script (adapted from one created by Marco van Hylckama Vlieg) is simple:
function accordionMenu() {
$('#accordion ul').hide();
$('#accordion li').click(
function() {
var checkElement = $(this).next();
if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
return false;
}
if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
$('#accordion ul:visible').slideUp('normal');
checkElement.slideDown('normal');
return false;
}
}
);
}
$(document).ready(function() {accordionMenu();});
Basically an accordion effect, which can be seen here: beprepared.hillphoenix.com/sessions.html
Click on the italicized text in the main content area.
The only message I see in IE7 is “Error on Page”. Of course, I’m a Mac user, so I have to bother coworkers to check the page on their PCs.
This works fine in every other browser I’ve tested, including IE8. What am I missing? What do I fix?
thanks in advance!