Topic awaiting preservation: beginner Jscript IF statement help (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 05-18-2004 02:23
I want to have a box appear if it is not there and disappear if it is, triggered by a click. |
Bipolar (III) Inmate From: Israel |
posted 05-18-2004 07:40
You are trying to ask "if (document.getElementById('tB').style.visibility == hidden){" where the hidden should be a string and not undefined variable. code: function sT(){ |
Obsessive-Compulsive (I) Inmate From: |
posted 05-18-2004 22:48
I'm sorry I tried that... I eventually get to a point where I don't know what ic could be and I just start changin syntax type things. Like paranethese, commas, etc. |
Obsessive-Compulsive (I) Inmate From: |
posted 05-18-2004 22:48
Are the semicolons the problem? |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 05-18-2004 23:15
javascript: code: function toggleVisibility(item){
|
Obsessive-Compulsive (I) Inmate From: |
posted 05-20-2004 02:35
Thank you very much norm!! |