why not do this
$('span.mycategory').length
(I've not worked with jquery and xml so I don't know anything about it)
ml1 wrote:
I have something very strange going on trying to create a wrapped set
of elements from an xml file loaded via jquery's xmlhttprequest. The
xml has a number of
You should wrap your string in '?
so your code would be
$('span[class*='mycategory'],xml).length
cheers
Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone: 1-919-517-1568 Tieline: 255-1568
E-mail: mjlaw...@us.ibm.com
'Examine my teachings critically, as a gold assayer
Thank you for the reply, but I'm afraid that doesn't work either.
Using your code (after correcting the small typos with the quotes) I
tried this:
$(span[class*='mycategory'],x).length
It still returns zero.
On Feb 16, 11:15 am, Michael Lawson mjlaw...@us.ibm.com wrote:
You should wrap
The string does not need to be wrapped in single quotation marks.
Also, why does the selector begin with a single quotation mark and end
with a double? Are these just typos in the emails?
Try this:
$('span[class*=mycategory]',xml).length
Just one set of single quotation marks, and the
Subject:[jQuery] Re: class weirdness in loaded XML?!?
The string does not need to be wrapped in single quotation marks. Also, why
does
@googlegroups.com
Date: 02/16/2009 11:31 AM
Subject: [jQuery] Re: class weirdness in loaded XML
accept them.'
From: Karl Swedberg k...@englishrules.com
To: jquery-en@googlegroups.com
Date: 02/16/2009 11:31 AM
Subject:[jQuery] Re: class weirdness in loaded XML?!?
The string does not need to be wrapped in single quotation marks. Also, why
does the selector
: class weirdness in loaded XML?!?
The string does not need to be wrapped in single quotation marks. Also, why
does the selector begin with a single quotation mark and end with a double?
Are these just typos in the emails?
Try this:
$('span[class*=mycategory]',xml).length
Just one set
harm
yourself
or others, only then should you accept them.'
From: Karl Swedberg k...@englishrules.com
To: jquery-en@googlegroups.com
Date: 02/16/2009 11:31 AM
Subject:[jQuery] Re: class weirdness in loaded XML?!?
The string does not need
9 matches
Mail list logo