For all children (including grandchildren):

    $('#data .x').length

For just children:

    $('#data > .x').length

Karl Rudd

On Feb 13, 2008 9:07 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Sure this is simple, still trying to get a handle on the basics of
> JQuery.  Given a DIV with id = "data", how would I count the number of
> DIVs with class = "x", within the larger DIV "data"?
>
> Thanks, - Dave
>

Reply via email to