Question: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 the li tag with id li2? 

A $('#id1 li').not($('#li2')); 

B $('#id1 li').except($('#li2')); 

C $('#id1 li').remove($('#li2')); 

D $('#id1 li').delete($('#li2')); 

+ Answer
+ Report
Total Preview: 730

Copyright © 2025. Powered by Intellect Software Ltd