Forum Moderators: open
I'm using a script that I got off the web. It uses JavaScript to toggle a div on and off. It works fine in IE but not in Firefox. Here is the script I'm using:
function toggle( targetId ) {
if ( document.getElementById ) {
target = document.getElementById( targetId );
if ( target.style.display == "none" ) {
target.style.display = "";
} else {
target.style.display = "none";
}
}
}
Does anyone know what the problem could be?
Thanks.