Hi when saving the following script it gets altered and no longer works.
before.
function test(id) {
var element = document.getElementById(id);
for(var i = 0 ; i <element.childNodes.length; i++) {
if(element.childNodes[ i].nodeType == 3) {
continue;
}
element.childNodes[ i].style.visibility = "hidden";
element.childNodes[ i].style.position = "absolute";
}
}
after see (red text).
function colaps(id) {
var element = document.getElementById(id);
for(var i = 0 ; i <element.childnodes.length; i++) {
if(element.childNodes[ i].nodeType == 3) {
continue;
}
element.childNodes[ i] .style.visibility = "hidden";
element.childNodes[ i].style.position = "absolute";
}
}
Any idea whats going on, and how do I stop this happening.