Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

hide multiple components

Hi,
I need to hide multiple components on page load, below is the code I used but its making the app throw an error alert.

App just wouldnt save with this approach, when commented out it saved as normal.

What can I do in this case?

Apperyio("toppinggrid1").hide();

Apperyio("toppinggrid2").hide();

Apperyio("toppinggrid3").hide();

Apperyio("toppinggrid4").hide();

Apperyio("toppinggrid5").hide();

Apperyio("toppinggrid6").hide();

Apperyio("toppinggrid7").hide();

Apperyio("toppinggrid8").hide();

Apperyio("toppinggrid9").hide();

Apperyio("toppinggrid10").hide();

Apperyio("toppinggrid11").hide();

Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

hide multiple components

Hello Michael,

Please add the class for every grid (e.g. "myGrid") and use it in JS for hidding grids:

$(".myGrid").hide();

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

hide multiple components

Thanks Sergiy,
Thats great, I didnt know I could use JS with class, thought it was only for css!

Thanks a bunch

Return to “Issues”