I want to generate html layout with areas (divs, spans) that can be shown/hidden conditionally. These areas are hidden by default.
If I call .hide() method with jque
@Andrew,
I know the answer has already been accepted, but using display: none; will be a nightmare to users without Javascript.
Using inline Javascript, you can hide an element without it ever blinking. Users without Javascript will still be able to see it.
Consider a few divs that should be hidden when the page loads.
... some content ...
... some content ...
The inline Javascript will run as soon as the element is rendered, thus hiding it from the user.