hide div when page load

前端 未结 3 893
情深已故
情深已故 2021-01-18 05:28

I have jquery issue, Kindly see my jquery code:

$(document).ready(function(){

    $(\".toggle_container\").show();

    $(\"h2.trigger\").toggle(function(){         


        
3条回答
  •  余生分开走
    2021-01-18 06:05

    remove the

    $(".toggle_container").show();
    

    from your $(document).ready function.

    in html part add style="display:none" for the toggle_container div.

    check the @HCK s reply. he is clearly mentioned it..

提交回复
热议问题