Here is a straightforward script that I'm using:
var element = document.getElementById("container");
if (element.clientHeight == "372") {
element.style.height = "328px";
element.style.marginBottom = "44px";
} else {
element.style.height = "214px;
element.style.marginBottom = "32px";
}
For some reason, the ELSE statement always runs, even when my div's initial height is actually 372px. Can anyone provide assistance with this issue?