How to hide elements with jQuery before they get rendered?

后端 未结 12 1336
北恋
北恋 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:11

    There's absolutely nothing wrong with setting an intial display property of an element, especially if you encapsulate it in a css class.

提交回复
热议问题