Show/hide div not working?

I have the following:

Please choose a value.






z.attachEvent(“onChange”, function(){ if(z.getActualValue()==“NULL”) { document.getElementById(“clientWarning”).style.display=‘block’; } else { document.getElementById(“clientWarning”).style.display=‘none’; } );



However this seems to give a syntax error. What is possibly wrong?

Hello,

There “}” is missed in your code:
z.attachEvent(“onChange”, function(){ if(z.getActualValue()==“NULL”) {
document.getElementById(“clientWarning”).style.display=‘block’; } else
{ document.getElementById(“clientWarning”).style.display=‘none’; }
}
 )
Possibly that is the issue.

Thanks… can’t believe I missed it. :<br>