Is this the right way to select an element, it seems to work but looks really ugly code wise
$(this).parent().parent().siblings('.photoWrap');
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.
If the parent’s parent has a class you can identify it, you could use
.closests()– You’d have less code then, it’d be up to you if that’s less “ugly”.