Jump to content

Show/Hide div NOT workink in FF


zed420

Recommended Posts

Hi All

Can anyone please tell me why doesn't this code work in Firefox. I'm using it for showing and hidding the divs.  Woks fine in IE.

 

<script type="text/javascript"><!--
var lastDiv = "";
function showDiv(divName) {
// hide last div
if (lastDiv) {
	document.getElementById(lastDiv).className = "hiddenDiv";
}
if (divName && document.getElementById(divName)) {
	document.getElementById(divName).className = "visibleDiv";
	lastDiv = divName;
}
}
//-->
</script>

Thanks

Zed

Link to comment
https://forums.phpfreaks.com/topic/138004-showhide-div-not-workink-in-ff/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.