rel selector doesn't work #414
-
I have a selector like this: const lightbox = GLightbox({"selector":"[rel=\"ligthbox\"]"}); And image tag: <a rel="lightbox" data-width="1200" data-height="1200" href="/images/7/0 0....
It works with class style selector. Also another question, how to put 2 or more selectors in the config? |
Beta Was this translation helpful? Give feedback.
Answered by
gingerchew
Mar 16, 2023
Replies: 1 comment 1 reply
-
In your JS example, you spelled lightbox wrong. The selector you pass in only goes to a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Artiom-M
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your JS example, you spelled lightbox wrong. The selector you pass in only goes to a
.querySelector()
function.