I use the following script to show or hide a div on a web page. Works great on everything but IE!!!
I call these functions with either an <a href> element or an onclick reference - but IE just doesn't display the hidden div element. (And I don't get any javascript errors in the Firefox error panel.)
What do I need to do to make it compatible for all browsers?
Thanks...
Code:
function showDiv(which) {
var visibleDiv = document.getElementById(which);
visibleDiv.style.display = "block";
}
function hideDiv(which){
var visibleDiv = document.getElementById(which);
visibleDiv.style.display = "none";
}
I call these functions with either an <a href> element or an onclick reference - but IE just doesn't display the hidden div element. (And I don't get any javascript errors in the Firefox error panel.)
What do I need to do to make it compatible for all browsers?
Thanks...