The second parameter is the "context" to search So
$(this "span") would be $("span", $(this)) or $(this).find("span") On Dec 4, 9:56 am, tlob <[EMAIL PROTECTED]> wrote: > I like to select every span, thats in "this" > $(this "span") > > sorry, simple and stupid... > > full function: > function liCounting (){ > $("#staerke1 li,#staerke2 > li").each(function(liCounter){ > liCounter++; //set liCounter to 1, not 0 > $(this "span").replaceWith("<span>"+ > liCounter +". </span>"); > }) > }; > > thx tom