Hey there, I'm new to this platform so bear with me as I navigate through this.
This is the code I have:
{
if (session.findById("T1").text == "") {
document.getElementById("W1").style.display = 'none';
} else {
document.getElementById("W1").style.display = 'inline';
}
}
In simple terms, it's meant to hide W1
when T1
is empty and show it when T1
has content.
I've been trying to work out the issue and even tried running this alone:
document.getElementById("W1").style.display = 'none';
The problem is that the item briefly disappears (flashes) but then reappears. It's somewhat functional but I want it to stay hidden permanently unless there is content in T1
.
Any suggestions on how to fix this?
Thanks a bunch!