jQuery child selector expression

Posted by Saiful on Stack Overflow See other posts from Stack Overflow or by Saiful
Published on 2010-04-04T14:21:10Z Indexed on 2010/04/04 14:23 UTC
Read the original article Hit count: 223

Filed under:
|
|
|
|
<div id="div">
    <div> <!-- first level -->
        <div> <!-- second level -->
            <div>1.1</div> <!-- third level -->
            <div>1.2</div>
        </div>
        <div>
            <div></div>
            <div>2.2</div>
        </div>
    </div>
</div>

What are the jQuery selector expressions for selecting the followings:
1. div commented by first level
2. divs commented by second level
3. divs commented by third level

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about selectors