if( 1 == 1 ){
coldiv.style.display = "none";
}
The following code does something if the innerHTML is hide:
if( shspan.innerHTML == "hide" ){
alert( "hide" );
}
The following code is supposed to collapse the div when innerHTML is hide:
if( shspan.innerHTML == "hide" ){
coldiv.style.display = "none";
}
The first and second functions work. The third doesn't. Why this is happening is completely and utterly beyond me. Can anyone else figure this out?


Sign In
Create Account


Back to top









