jquery find child

Posted by Sir Lojik on Stack Overflow See other posts from Stack Overflow or by Sir Lojik
Published on 2011-03-10T23:24:35Z Indexed on 2011/03/11 0:10 UTC
Read the original article Hit count: 180

Filed under:
|

hi all, ive got a jquery DOM traversing problem... i would like to get the first div (child) of li with id='wpc_pics2840' from the markup below. ie <div class="ui-btn-inner">

<li id="wpc_pics2840">
     <div class="ui-btn-inner">
          <div class="ui-btn-text">
            <a href="#" class="ui-link-inherit">
                <img width="40" height="40" src="http://www.veepiz.com/members/jimmydeantony/media/443_thumb.jpg" class="ui-li-thumb ui-corner-bl">
                <div style="font-size:9pt;font-weight:normal;">upload a bigger picture....</div>                
            </a>
        </div><span class="ui-icon ui-icon-arrow-r"></span></div></li>

btw, please dont say something like $('.ui-btn-inner')... its got to be the first child div of element with id='wpc_pics2840'

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dom