I am using jquery to to find the element on the page with display set to none and return it’s id in a variable. My attempt is below:
$(".galleryitem[display='none']").this
Can someone tell me where I am going wrong…
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.
I don’t think that you need to add
:hiddenpsuedo selector. The following will give you the id of selector irrespective of whether it is hidden or not.but if you add it will be bit faster-