MCQs > IT & Programming > JQuery > The code snippet:
  • Items 1
  • Items 2
  • Items 3
Which of the following code snippets return(s) a set of all li tags within 'id1' except for li tag with id 'li2'?

JQuery MCQs

Consider the following code snippet:

<font size=2>

 <ul id='id1'>

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

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

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

 </ul>

 </font>

Which of the following code snippets return(s) a set of all li tags within "id1" except for li tag with id "li2"?

Answer

Correct Answer: $('#id1 li').not($('#li2'));

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