This is a bit of strange one although it's probably my fault!
I loop through all the <select> elements on my page and set the visibility to 'hidden'
I can run a similar function and make all these visible again however it wont let me specify a single element to make visible.
Any idea's?
where would we be without rhetorical questions...
I loop through all the <select> elements on my page and set the visibility to 'hidden'
Code:
function HideAllObj(){
var objType = document.getElementsByTagName('select');
for(var i=0; i <= objType.length-1; i++){
document.getElementById(objType[i].id).style.visibility = 'hidden';
}
}
I can run a similar function and make all these visible again however it wont let me specify a single element to make visible.
Code:
function ShowOneObj(){
document.getElementById('MyObject').style.visibility='visible';
}
Any idea's?
where would we be without rhetorical questions...