Why only 2 elements allowed in "let ref = $("#element1, #element2,...");"?

I’ve got a series of onClick collapse/expand events, where each collapse/expand contains about 10 different elements - and obviously I’d like to group them under single references.

When trying to write ‘let ref = $(“#element1, #element2,…”);’ I get errors when putting more than 2 elements in the grouping. Any reason for this?

Thanks
Paul

It seems that the error message is an error. I tried a hide() with three elements, and although it got flagged as an error in the editor, it worked. I will pass this on to QA.

BTW - After running in Preview and then returning to the Editor, the error disappears. I guess the Editor figures you can’t argue with success.

Thanks

OK - Thanks - I’ll see if ignoring the error’d error works!