Doubt - Target a Specific Child of an Element Using jQuery

Doubt - Target a Specific Child of an Element Using jQuery
0.0 0

#1

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? :confused:


#2

‘.target’ is not a keyword, is the class name :stuck_out_tongue:
The command return an array of elements with class ‘target’, then it select the 2nd one ^^
EDIT:
I should think more before write o.o’

Description:

Selects all elements that are the nth-child of their parent.

Btw the consideration below is correct :slight_smile:


#3

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. :laughing::grin:

thank ya!