Shad Posted October 24, 2006 Share Posted October 24, 2006 [code]function showhide(name) {var object = null;object = document.getElementById(name);if (object.style.display == "none") { object.style.display = ""; } else { object.style.display = "none"; }}[/code]why doesn't this work in firefox? Link to comment https://forums.phpfreaks.com/topic/24986-hideshow/ Share on other sites More sharing options...
fenway Posted October 26, 2006 Share Posted October 26, 2006 What doesn't work about it? Maybe you have to set it to block, not ''. Link to comment https://forums.phpfreaks.com/topic/24986-hideshow/#findComment-114890 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.