I have an FAQ page that lists questions and when the user clicks on the
question the answer is displayed below.  I am using JavaScript to flip the
display style property of the answer.  This works just fine.

If one does not have JavaScript enabled I am using <noscript> to set display to
block, i.e.

<style type="text/css">
.FullInfo { display: none; }
</style>
<noscript>
<style type="text/css">
.FullInfo { display: block; }
</style>
</noscript>

This does not validate because <noscript> needs to be within a block element
and I am putting it in the <head> of the document.

In an attempt to get it to validate I wrote a JavaScript routine to look
through the answer <div>s and set the display to none, but this resulted in
them all being displayed then closing up, which looked quite unappealing to me.

So what is the best way to do this?  Should I just not worry about validation
and move on to the next thing or is there a "proper" way to do this?

Cheers -

george

------------------------------------- 

   Eclectic Mix: http://EclecticMix.com
   DRiP Investing: http://DRiPInvesting.org
   Handmade Photographic Images: http://www.GLSmyth.com
   One Minute How-To: http://podcasternews.com/details.php?P=131




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to