Jump to content

display toggle


Porl123

Recommended Posts

	function showHideLinks(menu) {
	var menuItems = document.getElementsByName(menu);
	for(var i in menuItems) {
		if(menuItems[i].style.display != '') {
			menuItems[i].style.display = '';
		} else {
			menuItems[i].style.display = 'none';
		}
	}
}

 

I've got this toggle function which collapses sections of the navigation bar and it works in most browsers but not this older version of IE that I have. Does anyone see anything wrong with this? Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/198439-display-toggle/
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.