MCQs > IT & Programming > JQuery > The code snippet:
  • Items 1
  • Items 2
  • Items 3
Which of the following code snippets returns the same result as $('#id1 li').not($('#li2'));?

JQuery MCQs

Consider the following code snippet:

<ul id='id1'>

  <li id='li1'>Items 1</li>

  <li id='li2'>Items 2</li>

  <li id='li3'>Items 3</li>

</ul>

Which of the following code snippets returns the same result as $('#id1 li').not($('#li2'));? 

Answer

Correct Answer: $('#li2').siblings();

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