I want to access all the subelelements of a given element . For ex :
<div id="main">
<div id="1">
<span></span>
<span></span>
</div>
<span></span>
<div></div>
</div>
Like in abover structure #main
contains 5 elements ( 2 div and 3 span ). How can i access it all in a single query ?