I understand the "find" function, I'm just not familiar with what '> div' means. Can anyone help?
It means all direct "div" descendants (so without other elements in between)
So, if your HTML is:
<div id="id1">
<div id="id2">
<div id="id3">
</div>
</div>
</div>
$("#id1").find("div")
will return divs "id2" and "id3"
$("#id1").find("> div")
will return only div "id2"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With