Selecting child element

Posted by ScG on Stack Overflow See other posts from Stack Overflow or by ScG
Published on 2010-05-05T04:09:07Z Indexed on 2010/05/05 4:18 UTC
Read the original article Hit count: 296

Filed under:

I have the following div

       <div id="acc">
           <a href="#">Link 1</a>
           <div>
                Some Content
           </div>
           <a href="#">Link 2</a>
           <div>
               Some Content
           </div>
       </div>

All the div's are collapsed to start with. How can I select the first div child of 'acc' and say Slide Down on it

I have cached the selector like this:

var $acc = $(acc);

© Stack Overflow or respective owner

Related posts about jQuery