How to hide elements with jQuery before they get rendered?

后端 未结 12 1308
北恋
北恋 2020-12-13 08:51

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

12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 09:29

    I struggled with this too, especially in IE, and I found this very helpful: http://robertnyman.com/2008/05/13/how-to-hide-and-show-initial-content-depending-on-whether-javascript-support-is-available/

提交回复
热议问题