I create a variable from a html object
var li = $(this).closest('li');
How do I now select inner html objects from this variable eg span.
I have tried
li.span
but no luck.
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.
You can use context to pass the variable with selector. You can learn more about selector and context here
This will give you span elements within li