views:

18

answers:

1

I have a specific example, but I'm looking for the answer in general as well. I have page elements that I want to have initially hidden if JavaScript is enabled.

Examples:

  1. A section of a form that toggles
  2. A submit button for a select box 'jump form'

I am trying to avoid the 'content flash' when the elements are hidden after page load.

+2  A: 

Check this solution out. It has worked for me in the past:

http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content

spinon
I'm gonna' try it! I especially like the final solution, allowing for JS at the bottom.
Sonny
Worked brilliantly! Thanks again!
Sonny
No problem. Glad it worked out for you.
spinon