Selecting only first level element, not child elements with the same element name

Posted by tester on Stack Overflow See other posts from Stack Overflow or by tester
Published on 2010-04-09T00:58:06Z Indexed on 2010/04/09 1:03 UTC
Read the original article Hit count: 244

Filed under:
|

How would I select only the first level .block and not any of the children?

$('.block:not("Children of this here")') <--

<div class="block">
  <div class="block">
    <div class="block">

    </div>
  </div>
</div>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css