I understand the "search" function, I just do not know what it means by "div". Can anyone help?
This means that all direct "div" descendants (without other elements in between)
So, if your HTML is:
& lt; Div id = "id1" & gt; & Lt; Div id = "id2" & gt; & Lt; Div id = "id3" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; "id2" and "id3" $ ("# id1"). ("Div")
Code> $ ("# id1"). ("& Gt; div") ("& gt; div")
only div "id2"
Comments
Post a Comment