Hiding a div by default

前端 未结 7 1205
半阙折子戏
半阙折子戏 2021-01-01 10:28

I have a div that should be shown only when the user clicks the show button

$(\"div.toshow\").show();

I have written in the body

         


        
7条回答
  •  误落风尘
    2021-01-01 11:13

    $('#myDiv').hide();
    
    $("myDiv").css("visibility", "hidden");
    
    .toshow {
      visibility:hidden;
      display:none;
     }
    

提交回复
热议问题