Skip to main content
Nintex Community Menu Bar
Question

hide div on page load

  • July 11, 2024
  • 5 replies
  • 16 views

Forum|alt.badge.img+3

I want to hide wrapper from on page load.
Please find the code as below:
(function(skuid){
var $ = skuid.$;
$(document.body).one(‘pageload’,function(){
        
      $(document).ready(function(){    
    alert(‘page loaded’);  // alert to confirm the page is loaded    
    $(‘wrapperId’).hide(); //enter the class or id of the particular html element which you wish to hide. 
});

    });
})(skuid);
I tried lot twist the code but I didn’t get result.


This topic has been closed for replies.

5 replies

Forum|alt.badge.img+18

do you have to do this with javascript? Is there a way you can use rendering conditions on the wrapper instead?

At the worst, create a ui-only checkbox field defaulted to false, and set rendering conditions on your wrapper based on that field.


Forum|alt.badge.img+3

how can we do on page load? by using j query.


Forum|alt.badge.img+3

can we do by using jquery?


Forum|alt.badge.img+18

sure. try this instead:

skuid.$C('wrapperId').element.hide();

Forum|alt.badge.img+3

Thanks a lot @Matt sones it’s worked.