[jQuery] Simple selector problem

2009-07-10 Thread Chris
$(document).ready(function { alert($("div").length); }); -- div 1 div 2 div 3 I'm using jQuery 1.3.2. In IE, this returns 3. In Firefox, it returns 4. What's going on?

[jQuery] simple selector problem :beginner();

2008-12-04 Thread tlob
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