CrazyMerlin
12-28-2005, 03:50 PM
Hey guys!
I'm using tenary operation to set/hide a div when a user clicks an image, but the evaluation, infact the setting of it only happens first time round:
user clicks, div appears
user clicks, div hides
user click, nothing
is this a known problem with the use of the tenary operator on the display property or my declaration
onclick="document.getElementById('divMoney').style.display=(document.getElementById('divMoney').style.display )?'none':'block'"
Thanks
I'm using tenary operation to set/hide a div when a user clicks an image, but the evaluation, infact the setting of it only happens first time round:
user clicks, div appears
user clicks, div hides
user click, nothing
is this a known problem with the use of the tenary operator on the display property or my declaration
onclick="document.getElementById('divMoney').style.display=(document.getElementById('divMoney').style.display )?'none':'block'"
Thanks