Untested, but should work: $('#data .x').length --Erik
On 2/12/08, [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 >