hide div when page load

前端 未结 3 890
情深已故
情深已故 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 05:38

    Once the document gets loaded, a alert box will be prompted "page loaded".

    $(document).ready(function(){    
        alert('page loaded');  // alert to confirm the page is loaded    
        $('.divClassName').hide(); //enter the class or id of the particular html element which you wish to hide. 
    });
    

提交回复
热议问题