<div class="first">
<div class="second">
etc
</dv>
</div>
How can I get the class of the first div ? (“first”) using jQuery ?
I have this html inside a variable “$body_html”
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.
Leah. Unfortunately, I don’t know in what way exactly you are going to get this class. But I suppose, that the next ideas can help you. If you know the second class you may use the next code
If you don’t, you may add the id to the first div tag and then use