I’m trying to select the last div with class my_class inside div with id a.
I tried several options with :last and :last-child but none of them worked.
Here is on try.
What am I doing 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.
Your selector works, you just weren’t including jQuery in your fiddle, here’s an updated/fixed version: http://jsfiddle.net/eU7By/3/
On the left panel, make sure to select jQuery as your library, by default it’s MooTools that’s included…it is after all built by the MooTools guys 🙂