I'm new to jQuery code, and recently saw a code like this:
var $pages = $('#main > div');
does that mean $pages will be the first div under #main or all the divs under #main? If I have the HTML code:
<div id="main">
<div class="sub-div" id="1">1</div>
<div id="1a">1a</div>
<div class="sub-div" id="2">2</div>
<div class="sub-div" id="3">3</div>
</div>
so, will $pages be an array contain all 3 divs or only the first one?
Additionally, can I use
var $pages = $('#main > div > div');
to get "1a" ?
Many thanks!