I was doing the 107th challenge when i got myself in doubt. How jQuery knows the class i want to select the nth-child if i use .target for general?
‘.target’ is not a keyword, is the class name
The command return an array of elements [s] with class ‘target’, then it select the 2nd one ^[1]
EDIT:
I should think more before write o.o’
Selects all elements that are the nth-child of their parent.
Btw the consideration below is correct
/s ↩︎
1 Like
Oh dude! I guess i got it!
So, Does the command get the 2nd child of a element if it has the ‘target’ class? <- I tested here i it’s make sense.
thank ya!