That was it. When I turn Firebug off, it returns 3.
Thanks.
On Jul 10, 2:50 pm, Brett Ritter wrote:
> On Fri, Jul 10, 2009 at 11:34 AM, Chris wrote:
> > I'm using jQuery 1.3.2. In IE, this returns 3. In Firefox, it
> > returns 4.
>
> Are you running Firebug or any add-on that modifies the D
On Fri, Jul 10, 2009 at 11:34 AM, Chris wrote:
> I'm using jQuery 1.3.2. In IE, this returns 3. In Firefox, it
> returns 4.
Are you running Firebug or any add-on that modifies the DOM in Firefox?
--
Brett Ritter / SwiftOne
swift...@swiftone.org
Here it is returning 3 in IE and FireFox as expected.
Maurício
-Mensagem Original-
De: Chris
Para: jQuery (English)
Enviada em: sexta-feira, 10 de julho de 2009 12:34
Assunto: [jQuery] Simple selector problem
$(document).ready(function {
alert($("div").length);
}
> $("span", $(this))
There is really no need to wrap this in a jQuery object:
$('span', this)
--Klaus
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:
> f
5 matches
Mail list logo