Is it possible to use .addClass to each item with a specific ID? I have 2 gallery containers, and both needs to have a class added. They do both have the same id #galleri_container
. When trying this: $('#galleri_container').addClass('active');
It only affects number 1 in that list, (the first #galleri_container
). I need it to affect both number 1 and number 2.
How to achieve the desired effect?