I’d like to handler all elements with the attribute rel inside of an a elements that start with string lightbox.
How can I do it with jQuery?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the attribute starts with selector.
EDIT: having re-read your question, it sounds like this may be what you want:
This selects all elements that have the attribute
reland are within anatag that has an ID starting withlightbox.