hide div on page load

edited August 2017 in Questions
I want to hide wrapper from on page load.
Please find the code as below:
var $ = skuid.$;
    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. 

I tried lot twist the code but I didn't get result.


  • Matt SonesMatt Sones ✭✭
    edited August 2017
    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.
  • edited August 2017
    how can we do on page load? by using j query.
  • edited August 2017
    can we do by using jquery?

  • Matt SonesMatt Sones ✭✭
    edited August 2017
    sure. try this instead:
  • edited August 2017
    Thanks a lot @Matt sones it's worked.

Sign In or Register to comment.