- 1
How to empty the second child element of the element with id="nav".?
//this is my answer var e = $(" #nav "). siblings(); e.eq( 1 ). empty (); //however this is uncorrect. please help !
10 Respostas
+ 2
Ya children() works
+ 4
children() instead of siblings()?
+ 3
That's hilarious joke!
+ 1
.next() instead of .sibling() maybe?
+ 1
But tha....If select with id....Won't jquery select only one element?
+ 1
#nav
children
1
empty
0
nope
0
Yeah even I was thinking so, but it is a challenge question and it is showing uncorrect
0
children is right !
0
hfbc