How can I use querySelectorAll with htmx

I am working with htmx which is a fantastic library, I have a little problem that’s not very clear on how to solve. htmx uses queryselector to locate elements to swap/update example with hx-swap="...", hx-target="..." how do I do a querySelectorAll. example I have a class bookmark, when a user bookmarks a post, I want to update all the classes with .bookmark