I have a script that toggles on and off the visibility of table rows. This works good except I need a script that simply turns off the visibility and does not toggle it.
Code:
function toggleoff(obj) {
var aTR=obj.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('tr');
var show=(document.all)? 'block' : 'table-row';
for(var i=5; i<11; i++) {
aTR[i].style.display=(aTR[i].style.display=='none')? show : 'none';
}
}