There was a call to a second function that was messing with the display
settings. I removed the display settings from Q4Chk() and placed them in the
second function and all is well..
Thanks to all for letting me bounce this off of you
sas
~~
>Umm, it might be as simple as the JS not setting the display property
>correctly?
>
>e.g.
>
>document.getElementById("COMMENTB").style.display = "none";
>document.getElementById("COMMENTC").style.display = '';
>document.getElementById("FRMSUBMIT").style.display = '';
>
>Shouldn't the empty quotes
>>here's the template:
>>http://cfm.pastebin.com/m549bfe76
>
>
>You really should investigate jQuery.
>
>It will allow you to ditch all this ugly overly-verbose code:
>
>document.getElementById("COMMENTB").style.display = "none";
>document.getElementById("COMMENTC").style.display = "none";
>documen
>here's the template:
>http://cfm.pastebin.com/m549bfe76
You really should investigate jQuery.
It will allow you to ditch all this ugly overly-verbose code:
document.getElementById("COMMENTB").style.display = "none";
document.getElementById("COMMENTC").style.display = "none";
document.getElemen
user answers "yes", or "I don't
know" to any question, that overrides the behavior triggered by any "no"
answers.
There it isclear as mud
Craig Dudley wrote:
> You shouldn't do.
>
> What's going wrong in your example?
>
> -----Ori
No I understand that, display determines whether the the div will be
rendered and visibility sets similar to opacity=0, you can't see it but
it's there
Peter Boughton wrote:
>> If I'm setting the visibility for a div (display:none or display:block
>> in this case), do also need to set visibilit
>If I'm setting the visibility for a div (display:none or display:block
>in this case), do also need to set visibility for anything inside the
>div.
Nope - you only need to do it to the parent item.
Note, you're not setting "visibility", you're setting "display". This isn't
being pedantic; th
isplay = '';
Shouldn't the empty quotes be 'block' ? I could be wrong though.
-Original Message-
From: Scott Stewart [mailto:[EMAIL PROTECTED]
Sent: 10 October 2008 15:59
To: cf-talk
Subject: Re: setting div visibility with javascript
It's complicated
ever if the user answers "yes", or "I don't
know" to any question, that overrides the behavior triggered by any "no"
answers.
There it isclear as mud
Craig Dudley wrote:
> You shouldn't do.
>
> What's going wrong in your example?
>
> ---
You shouldn't do.
What's going wrong in your example?
-Original Message-
From: Scott Stewart [mailto:[EMAIL PROTECTED]
Sent: 10 October 2008 15:19
To: cf-talk
Subject: SOT: setting div visibility with javascript
Hey all,
If I'm setting the visibility for a div (
Hey all,
If I'm setting the visibility for a div (display:none or display:block
in this case), do also need to set visibility for anything inside the
div. IE:
blah
If I wanted this to not display, and behave properly, do I need to set
the display property for the span tag a
11 matches
Mail list logo