giving element-name to group

I would be handy to group elements and than the possibility to give it an element-name.

So you can enable/disable, visible/non-visible the group in just one row method:

elements.groupname.visible = true

It’s possible to make an array in javascript, add all the elements to that array and a global method to handle the array to set all the elements visible for example

How do you assign form elements (fields/buttons/portals) to the array elements? Do you mean that the method will only create the array and the form elements are named as array elements?
Could you please give a short example?

myElementgroup = new Array(); //create an Array that will be filled with a group of elements

myElementgroup[0] = elements.myField1;
myElementgroup[1] = elements.myField2;
etc..

//set the element group to visible
for(var i=0;i<myElementgroup.length;i++)
{
myElementgroupName1*.visible = true;*
}

searching for the solution of this problem I found this old post.
Yes you can hide all the element grouping by elements.name or using a tabpanel but it is not so handy…

request++ for me