L
libsfan01
function switch_display(switchme) {
var el = document.getElementById(switchme);
el.style.display = (el.style.display == 'none')? '' : 'none';
}
im using this function to switch the display on and off of a given
element. BUT if the element is set to 'none' to begin with then it wont
display it.
please help...
var el = document.getElementById(switchme);
el.style.display = (el.style.display == 'none')? '' : 'none';
}
im using this function to switch the display on and off of a given
element. BUT if the element is set to 'none' to begin with then it wont
display it.
please help...