Categories | Question details Back To List | ||
Show/hide div not working? I have the following: <div id="clientWarning" style="display:none">Please choose a value.</div> 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? Answer posted by Alex (support) on May 28, 2009 01:35 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. Answer posted by Dawson on May 28, 2009 17:06 Thanks... can't believe I missed it. :\ |