For example if we want to hide/show or in any way manipulate multiple fields at the same time, it would be great besides from the solo ID, to also have a “Group ID” which will be allowed to be entered in more than one element, and whatever actions are called in JS for these elements to happen in all group items.
Of course restricted to only the same type of element(button/text/ etc) so that we wont have a problem when we call actions on JS, because they will all have the same possibilities.
For example 3 buttons with Group ID “back”, when we call
back.hide( );
this will hide all 3 buttons.
I know this can be done by grouping them, and then have a “Grouped ID” ID, but its not practical.
Something like this:
and maybe have a different way of calling it, like ##
$(" ## back")
so that it wont mess with the solo IDs.