The getElementById
takes only one parameter, the id of the element you want to select. You can't pass to id more than one ids.
For more documentantion on this, please have a look here.
If you want to select multiple elements and attach to them the same event handler, you can use another approach.
First you have to add the same class to each of them, for instance js-classname.
Then you can select them using the method getElementsByClassName
. This method will return to you an array like object containing all the elements with the class you specified.
If you need more information about this, please have a look here.