There's a jQuery poll posted on W3Schools ...
http://www.w3schools.com/quiztest/quiztest.asp?qtest=jQuery
Question No. 19 is as follows:
Take a look at the following jQuery selector: $ ("div # intro.head").
What does he choose?
but. The first element with id = "head" inside any div element with class = "intro"
B. All elements with class = "head" inside the first div element with id = "intro"
C. All div elements with id = "intro" or class = "head"
I understood this correctly by choosing answer B.
My question is about the wording of answer B.
Should the word "first" be removed from the answer?
B. All elements with class = "head" inside a div element with id = "intro"
The identifier is defined as “a unique identifier for an element”, so it’s not entirely clear why they will refer to “element first div with id = intro”
I do not believe that this is intentionally trying to be difficult, since all the other questions in this quiz are very simple.
Thanks for your thoughts.
EDIT:
I reported this error to W3Schools and directed them to this thread.
EDIT # 2:
This is another question from the same quiz.
Another dubious Query Query answer on W3Schools
Sparky
source share