Question: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'));?
A $('#li2').siblings();
B $('#id2').siblings('#li2');
C $('#li2').children();
D $('#id2').children('#li2');
+ AnswerA
+ Report