MCQs > IT & Programming > JQuery > The code snippet:
Div 2
Which tags is/are in the result of $('#id2').parents();?

JQuery MCQs

Consider the following code snippet:

<div id='id1'>
    <div id='id2'>Div 2</div>
</div>

Which of the following tags is/are in the result of $('#id2').parents();?

Answer

Correct Answer: html and body

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it